azure-event-hubs-connector
v0.0.1
Published
A connector to send events to Azure Event Hubs in a simplified way
Downloads
5
Readme
Usage
var hubsConnector = require('./index.js');
hubsConnector.init(
"<your-connection-string>"
, "<your-hub-name>");
async function test() {
await hubsConnector.sendEvent({ time: Date.now(), value: Math.random() * 10 });
console.log("Message sent successfully");
}
test();