Skip to content

Supporting for Socket client & server timeout missing #2196

Description

@datsabk

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

@slack/bolt version

3.19.0

Your App and Receiver Configuration

const app = new App({
    token: process.env.SLACK_BOT_TOKEN,
    signingSecret: process.env.SLACK_SIGNING_SECRET,
    socketMode: true, // add this
    appToken: process.env.SLACK_APP_TOKEN // add this
});

Node.js runtime version

node v20

Steps to reproduce:

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

  1. Setup socket mode
  2. On receiving app_mention event, run an SSH command using Node JS child process - make sure it takes atleast 6 seconds
  3. You will receive an error when trying to send a response

Expected result:

Allow customization of the timeout as available here: https://github.com/slackapi/node-slack-sdk/blob/3a7d3b5b4b83b3e81beb6b0c65809494301b10cd/packages/socket-mode/src/SocketModeOptions.ts#L29

Actual result:

[INFO] socket-mode:SocketModeClient:0 A pong wasn't received from the server before the timeout of 5000ms!
[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

Requirements

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-staleneeds infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more infoquestionM-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