slack-rx-event
This is a Slack Events API wrapper that implements RxJS.
Install
yarn add slack-rx-event
Usage
You can use the same way you're using the default library, just keep in mind that the adapter.on()
method will return an Rx.Observable
object.
const createSlackEventAdapter = createSlackEventAdapterconst slackEvents = // Attach listeners to events by Slack Event "type".// See: https://api.slack.com/events/message.imslackEvents // Normal callback method also works.slackEvents // Start a basic HTTP serverslackEventsstartprocessenvPORT