Skip to content

Added reconnect function that uses rtm.connect to reconnect to slack api#149

Open
Clotonervo wants to merge 3 commits into
mishk0:masterfrom
Clotonervo:master
Open

Added reconnect function that uses rtm.connect to reconnect to slack api#149
Clotonervo wants to merge 3 commits into
mishk0:masterfrom
Clotonervo:master

Conversation

@Clotonervo
Copy link
Copy Markdown

Newer versions of the Real Time Messaging api from Slack cause the url used by Slackbots to expire after a short amount of time. Calling this function when receiving a goodbye event will call rtm.connect and return and update a new url for the slack bot to use.

@Clotonervo
Copy link
Copy Markdown
Author

This function should fix issues regarding early disconnecting from the WebSocket Url. Simply calling this will refresh the url so that your slackbot can continuously stay connected.

@Clotonervo
Copy link
Copy Markdown
Author

@mishk0 Is this repository still being updated? I think this would be valuable :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant