clay-hub-sdk
v2.0.2
Published
This is a small npm package to send events directly to a Clay Event Hub stream.
Downloads
11
Readme
Clay Event Hub SDK
This is a small npm package to send events directly to a Clay Event Hub stream.
// Require the package
const hub = require('clay-hub-sdk')
// Plug in your stream id
const stream = hub('stream-id')
// Send any event
stream({
type: 'USER_REGISTERED',
firstName: 'Nicolas',
...
})
// Or even just number or strings
stream(3)
stream('USER_DISCONNECTED')
Learn More
Go to Clay Event Hub to create an account.