chatengine-io / react-chat-engine

React component for a cheap and easy chat API
138 stars 35 forks source link

I keep getting a socket error/ socket closed while loop #139

Closed lilytava2510 closed 1 year ago

lilytava2510 commented 2 years ago

When ever I want to start trying to start a chat I get a socket closed/ socket error while loop and I don't know how to solve this problem.

alamorre commented 2 years ago

Can you share the errors logs that you see in the console?

arifdroid commented 1 year ago

me too , getting the same error

Screenshot 2022-07-12 at 11 15 58 PM

Screenshot 2022-07-12 at 11 15 27 PM

Screenshot 2022-07-12 at 11 13 58 PM

RubenF01 commented 1 year ago

I'm also experiencing this issue... Is there a fix??

sagarbrathod1 commented 1 year ago

same here...

markibanez commented 1 year ago

Same here!

Rahulmall commented 1 year ago

same here

pint-drinker commented 1 year ago

experiencing this as well in a loop when using the react-chat-engine-pretty default example. Experiencing a websocket error using the most basic ChatEngine example as well. index.js:80 WebSocket connection to 'wss://api.chatengine.io/person_v4/?session_token=st-6980cff5-f563-4f58-893c-27c8d4b356eb' failed: WebSocket is closed before the connection is established.

alamorre commented 1 year ago

Turn off react strictmode 👍👍

On Sun, Mar 12, 2023 at 16:08 Dana Wensberg @.***> wrote:

experiencing this as well in a loop when using the react-chat-engine-pretty default example. Experiencing a websocket error using the most basic ChatEngine example as well. index.js:80 WebSocket connection to 'wss:// api.chatengine.io/person_v4/?session_token=st-6980cff5-f563-4f58-893c-27c8d4b356eb' failed: WebSocket is closed before the connection is established.

— Reply to this email directly, view it on GitHub https://github.com/chatengine-io/react-chat-engine/issues/139#issuecomment-1465324983, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSTYA3DS4ZIHFLVOPRRICDW3ZQP3ANCNFSM5YKQQ3XA . You are receiving this because you commented.Message ID: @.***>

pint-drinker commented 1 year ago

@alamorre you are a legend man. Thank you for the quick turn reply!