clay-hub-sdk

2.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i clay-hub-sdk

Weekly Downloads

7

Version

2.0.2

License

ISC

Unpacked Size

5.57 kB

Total Files

4

Last publish

Collaborators

  • theo-