How to reconnect my client socketIO to my web server using ExpressJS and SocketIO #4102
Unanswered
Jonathan64340
asked this question in
Q&A
Replies: 2 comments
-
Hi! This is the expected behavior, the Socket.IO client will try to reconnect with either:
Please see here: https://socket.io/docs/v4/how-it-works/ Or are you talking about the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey thank you for your quick response ! My problem is when user is
disconnected i want to reconnect it to my express server with
https://myserver and when socketio trying to reconnecting it will fetch
ws://myserver but i don't have ws server exposed juste https ....
Le jeu. 23 sept. 2021 à 14:35, Damien Arrachequesne <
***@***.***> a écrit :
… Hi! This is the expected behavior, the Socket.IO client will try to
reconnect with either:
- HTTP long-polling, with URL like https://{my_server}
- or WebSocket, with URL like ws://{my_server}
Please see here: https://socket.io/docs/v4/how-it-works/
Or are you talking about the ws:// (no TLS) vs https:// (TLS)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4102 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCPQZO4UNDSGVHZEX4XAQDUDMNJXANCNFSM5ESJWZVA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, today i'm needed help from you.
I have making one chat app using socketio front/back.
When i lost connection due to exemple switching from my wifi to my data mobile phone, i am disconnected but when i see in my network i can see the client socketIO try to reconnect on ws://{my_server} but my server using expressJS and i must call only https://{my_server} and not ws://{my_server}
Thank you all for your help !!!!
Beta Was this translation helpful? Give feedback.
All reactions