Socket.IO client does not upgrade to WebSocket #4444
Unanswered
DaRealCodeWritten
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi! Could you please check the response body of the first request? It should contain something like:
If the Reference: https://socket.io/docs/v4/how-it-works/#handshake Which version of the client are you using? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
(Note: I would've started this discussion in the socket.io-client repo but when i try to, it sends me to this one)
I have a Flask webserver using the
flask-socketio
module andsimple-websocket
to drive websocket communicationThis is the code im using to communicate with the webserver:
(Ignore the weird indents, something went wrong when copy pasting i think)
The client connects to the webserver perfectly fine, however the client appears to make no effort to upgrade to WebSocket communication and sticks to polling as evidenced by:
Is there a way i can manually trigger the upgrade attempt or am i doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions