<commit_before># .City Web of Things Framework

[![Join the chat at https://gitter.im/wotcity/wotcity-wot-framework](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/wotcity/wotcity-wot-framework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

The Web of Things framework by WoT.City. It's a broker WoT server. This means that it isn't running on IoT devices. The current implementation has the following features and please read [Usage](#usage) for technical information..

1. A Websocket broker server. 
2. The main use case is for constrained devices (eg. microcontrollers) to sending data streams to the web.

It's an reference implementation of concepts of W3C Web of Things Framework.

1. [Install](#install)
2. [Usage](#usage)
3. [Discussion](#discussion)
4. [How To Report Bugs](#how-to-report-bugs)
5. [Authors](#authors)

## Install

1. [Download dotcity-wot-framework](https://github.com/wotcity/dotcity-wot-framework).
2. Run `$ cd dotcity-wot-framework` to change the directory.
3. Run `$ npm install` to install the dependencies if you don't already have them.
4. Run `$ node index.js` to start the WoT websocket server.

The server is running at `ws://localhost:8000`.

## Tests

1. Open a new terminal and run `$ cd tests` to enter the directory of test scripts.
2. Run `$ node send.js` to start sending streaming data to WoT websocket server.
3. Open a new terminal and run `$ node viewer.js` to start receiving streaming data over websocket. <commit_msg>fix README.md start server script<commit_after># .City Web of Things Framework

[![Join the chat at https://gitter.im/wotcity/wotcity-wot-framework](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/wotcity/wotcity-wot-framework?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

The Web of Things framework by WoT.City. It's a broker WoT server. This means that it isn't running on IoT devices. The current implementation has the following features and please read [Usage](#usage) for technical information..

1. A Websocket broker server. 
2. The main use case is for constrained devices (eg. microcontrollers) to sending data streams to the web.

It's an reference implementation of concepts of W3C Web of Things Framework.

1. [Install](#install)
2. [Usage](#usage)
3. [Discussion](#discussion)
4. [How To Report Bugs](#how-to-report-bugs)
5. [Authors](#authors)

## Install

1. [Download dotcity-wot-framework](https://github.com/wotcity/dotcity-wot-framework).
2. Run `$ cd dotcity-wot-framework` to change the directory.
3. Run `$ npm install` to install the dependencies if you don't already have them.
4. Run `$ node servers/websocket-broker.js` to start the WoT websocket server.

The server is running at `ws://localhost:8000`.

## Tests

1. Open a new terminal and run `$ cd tests` to enter the directory of test scripts.
2. Run `$ node send.js` to start sending streaming data to WoT websocket server.
3. Open a new terminal and run `$ node viewer.js` to start receiving streaming data over websocket. 
{'fraction_non_alphanumeric': 0.10871694417238002, 'fraction_numerical': 0.013712047012732615, 'mean_word_length': 4.510791366906475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2905171', 'n_tokens_mistral': 986, 'n_tokens_neox': 930, 'n_words': 368}