Skip to content

WebSocket is closed before the connection is established. #5371

Open

Description

@hokamsingh

Describe the bug
after a long time of connection websocket does not connect and throws "WebSocket is closed before the connection is established." until you restart the server.

To Reproduce
Keep monitoring socket connection for a long time.

Socket.IO client version: @nestjs/platform-socket.io": "^10.4.6"

Expected behavior
Should not happen.

Platform:

  • Device: Ubuntu chrome browser
  • OS: Ubuntu

Activity

  1. darrachequesne commented on May 29, 2026

    @darrachequesne
    Member

    @hokamsingh did you find the culprit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions