WebSocket is Closed Before the Connection is Established and long connecting issue, stuck at connecting in CometChat.ConnectionListener

I’m using
@cometchat-pro/chat”: “2.1.4”,
“next”: “^10.0.0”,
and im only using cometChat JS SDK

and i got the problem is
WebSocket connection to ‘wss://1922367c2bf0d6c5.ws-us.cometchat.io/ws/’ failed: WebSocket is closed before the connection is established.

and getting stuck at enableStateLogging ~ inConnecting and not change to connected

and if possible, have anyone use cometchat JS SDk with nextjs? can i an example

While afk and leave the comet there it’s appear problem

Cant connect and keep reconnect

Hello @recbook,

Please update the JS SDK to the latest version v2.4.0 and please let us know if you are still facing this issue.

Warm Regards,

CometChat Pro
Mayur Bhandari

thank you, it’s work for now

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.