Skip to content

Javascript module for connecting to the Sentiance Firehose

Notifications You must be signed in to change notification settings

sentiance/js-sentiance-firehose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Javascript module for connecting to the Sentiance Firehose

Resources

Stars

Watchers

Forks

Packages

No packages published