0.0.4 • Published 7 years ago

js-sentiance-firehose v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

js-sentiance-firehose

Javascript module for connecting to the Sentiance Firehose

Install

Install module using npm:

npm install js-sentiance-firehose --save

Or using bower:

bower install js-sentiance-firehose --save

Include dist/js-sentiance-firehose.js or dist/js-sentiance-firehose.min.js to your project:

<script src="js-sentiance-firehose.js"></script>

Example

// connect to the stream
SentianceFirehose.connect(appId, streamDefinitionId, bearerToken, userIds);

// stream event listener
SentianceFirehose.onData(onDataUpdate);

function onDataUpdate(data, errors, metadata) {
  // implement your custom data handling here
}

// disconnect from the stream
SentianceFirehose.disconnect();
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago