Skip to content

Commit

Permalink
add new rtm-api readme and documentation site page, fix typos across …
Browse files Browse the repository at this point in the history
…web-api docs
  • Loading branch information
aoberoi committed Mar 28, 2019
1 parent 2a3fe59 commit 6c57e52
Show file tree
Hide file tree
Showing 6 changed files with 993 additions and 257 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -222,7 +222,8 @@ const token = process.env.SLACK_TOKEN;

// The client is initialized and then started to get an active connection to the platform
const rtm = new RTMClient(token);
rtm.start();
rtm.start()
.catch(console.error);

// Calling `rtm.on(eventName, eventHandler)` allows you to handle events (see: https://api.slack.com/events)
// When the connection is active, the 'ready' event will be triggered
Expand Down

0 comments on commit 6c57e52

Please sign in to comment.