EventhubJS - Azure Eventhub Uplink
EventHub JS is a simple integration for Azure Eventhubs. Event Batching support is built in from the start!
Install
npm install eventhub-ts
Usage
const eventhub = ; const TOKEN = eventhub;const CLIENT = TOKEN // Defaults: batching: true batchSize: 1025 * 200 intervalTimer: 20; // Inherit from this class, to whatever is needed for your eventhublet event = ; CLIENT;
Events
EventhubJS uses events to report on its status
CLIENT;
added
- An Event got added to its batch
sendBatch
- Batch was sent to Eventhub
invalidToken
- Authentication Rejected for SASToken
httpErr
- STATUSCODE - HTTP Error when sending events to eventhub