0.0.4 • Published 9 years ago
js-sentiance-firehose v0.0.4
js-sentiance-firehose
Javascript module for connecting to the Sentiance Firehose
Install
Install module using npm:
npm install js-sentiance-firehose --saveOr using bower:
bower install js-sentiance-firehose --saveInclude 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();