2.0.2 • Published 7 years ago

clay-hub-sdk v2.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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.

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago