Skip to content

@slack/socket-mode - Handle event.type === disconnect && reason === 'too_many_websockets' #1654

@jhankim

Description

@jhankim

👋 from Slack Customer Success.

Current state of @slack/socket-mode package does not account for event.type === disconnect && reason === 'too_many_websockets', causing unhandled error to bubble up when Slack decides to disconnect existing connection during connecting:handshaking state

Here's a log output - the reconnect happens initially after the app receives event.type === 'disconnect' && reason === 'warning'

Packages:

Select all that apply:

  • @slack/web-api
  • @slack/rtm-api
  • @slack/webhooks
  • @slack/oauth
  • @slack/socket-mode
  • @slack/types
  • I don't know

Requirements

Feature request: have the app catch reason === 'too_many_websockets'

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-skipneeds infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more infopkg:socket-modeapplies to `@slack/socket-mode`questionM-T: User needs support to use the project

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions