Skip to content

The RTM client silently disconnects after a few hours #464

@gaspardpetit

Description

@gaspardpetit

Issue Type

  • Bug
  • Enhancement / Feature request
  • Question
  • Documentation

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 [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documentedproject:slack-api-clientproject:slack-api-clientproject:slack-api-client/rtm

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions