Issue Type
Description
The RTM client will silently disconnect after a few hours. There does not seem to be any callback being triggered or easy ways to check the status of the websocket from the RTM api.
I have produced PR #459 to support ping/pong messages and events, and was hoping that pinging every 30 seconds would help but it did not. At the end, I can see a ping never being answered back.
It could be that the solution is to timeout on a ping event and force a reconnect when the pong response is not heard back within a reasonable amount of time (ex. 15 seconds?)
Is there another way to test if the websocket is still active with the RTM client? or a way to obtain a callback when the websocket connection drops?
Requirements (place an x in each of the [ ])
Issue Type
Description
The RTM client will silently disconnect after a few hours. There does not seem to be any callback being triggered or easy ways to check the status of the websocket from the RTM api.
I have produced PR #459 to support ping/pong messages and events, and was hoping that pinging every 30 seconds would help but it did not. At the end, I can see a ping never being answered back.
It could be that the solution is to timeout on a ping event and force a reconnect when the pong response is not heard back within a reasonable amount of time (ex. 15 seconds?)
Is there another way to test if the websocket is still active with the RTM client? or a way to obtain a callback when the websocket connection drops?
Requirements (place an
xin each of the[ ])