pusher-lambda-promise
A basic pusher trigger for AWS Lambda using promises.
Related to https://github.com/pusher/pusher-http-node/issues/67
Installation
npm install --save pusher-lambda-promise
Usage
Require the module, and initialize Pusher with settings.
const Pusher = ; const pusher = appId: processenvPUSHER_APP_ID key: processenvPUSHER_APP_KEY secret: processenvPUSHER_APP_SECRET cluster: processenvPUSHER_APP_CLUSTER;
Trigger single event
pusher;
Trigger batch events
const batch = foo: 'foo' bar: 'bar' foo: 'foo' bar: 'bar' ; pusher;