Skip to content

Slack socket mode reconnecting #1906

Description

@syedirfan33

(Filling out the following with as much detail as you can provide will help us solve your issue sooner.)

Reproducible in:

Local, docker container

The Slack SDK version

3.5

or refer to your package.json
"dependencies": {
"@slack/bolt": "3.5",
"@slack/rtm-api": "^6.1.0",
"@slack/socket-mode": "^1.3.2",
"@slack/web-api": "^6.8.1",
"node-fetch": "^3.3.1"
}

Node.js runtime version

v16.14.0
(Paste the output of node --version)

OS info

(Paste the output of sw_vers && uname -v on macOS/Linux or ver on Windows OS)
ProductName: macOS
ProductVersion: 13.4
BuildVersion: 22F66
Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103

Steps to reproduce:

(Share the commands to run, source code, and project settings)

  1. Run the bolt app on port 3000, in a socket mode
  2. After a couple of hours, the events will no longer be received via socket mode
  3. Socket mode disconnects and reconnects on it's own

`[INFO] socket-mode:SocketModeClient:0 Reconnecting to Slack ...

[INFO] socket-mode:SocketModeClient:0 Going to establish a new connection to Slack

[INFO] socket-mode:SocketModeClient:0 Now connected to Slack`

Expected result:

  1. Socket connection should always be ON and should receive the events all the time

More details here
https://stackoverflow.com/questions/76760627/slack-socket-mode-reconnecting

Metadata

Metadata

Labels

questionM-T: User needs support to use the project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions