Skip to content

[BUG] WebSocket is closed before the connection is established #1231

@samet404

Description

@samet404

Description
When I try to connect, I get error "WebSocket connection to 'wss://ws.example.com' failed: WebSocket is closed before the connection is established.". After waiting for a while or sometimes after turning it off and on, it gets fixed. The problem seems to be in the client code, but it's actually not. I tried connecting to the server with react, html and tested it on some websocket test sites. I have the same problem on both localhost and hetzner servers regardless of TLS. Server logs only show that the user's connection was closed and there is no reason

Reproduction steps
Steps to reproduce the behavior:

  1. Start server
  2. Try to connect

Expected behavior
should work properly

Environment

  • Soketi version: All versions
  • Adapter: local
  • App Manager: array
  • Queue: sync
  • Cache Managers: memory

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions