-
Notifications
You must be signed in to change notification settings - Fork 130
FR: Reconnect when the link is disconnected. #15
Comments
Had the case a few times on my instance, just after a |
Maybe the simplest thing is shutdown the robot like this: websocket.on(:close) { log.info("Disconnected from Slack."); robot.shut_down } |
Agreed. Reconnection should be handled by a process manager. What lita-slack should do is make sure the process shuts down correctly when the connection is lost. |
Thanks a lot!! |
You're welcome! This was released in gem version 1.1.0. |
Thanks! |
@jimmycuadra why is it your opinion that this should be handled by a process manager instead of making this process bulletproof? as far as I know the IRC adapter can auto reconnect... |
If someone wants to implement auto-reconnection, I'd be happy to take a PR. See litaio/lita-hipchat#20 for a discussion on this topic in the HipChat adapter where people convinced me the plugin should do it. |
Awesome, thanks for the input @jimmycuadra - will read over your comments there and work on putting together a PR. |
Today, my bot was not respond to chat.
I checked the log and I found this line.
I guess the lita-slack does not reconnect when the connection is lost.
Is there any way to reconnect to slack server?
The text was updated successfully, but these errors were encountered: