Sonic-js
WebSockets Client library for the Sonic protocol
Installation
- Using npm:
npm install sonic-js
- For browser usage, bundling has has been tested with browserify and babel.
Usage
var Client = Client;var assert = ; var client = 'ws://0.0.0.0:9111'; var query = query: '5' config: "class" : "SyntheticSource" "seed" : 1000 "progress-delay" : 10 ; /* Client.prototype.run */ client; /* Client.prototype.stream */ var stream = client; var done = 0; stream; stream; stream; stream; stream; stream;
For a more complete example, check examples/example.js.
Contribute
If you would like to contribute to the project, please fork the project, include your changes and submit a pull request back to the main repository.
License
MIT License