I am trying to make a real time application. I am using NodeJS as a server and Socket.IO, to achieve my real time functionality.
The problem is I am getting error as:
WebSocket connection to 'wss://localhost:1234/socket.io/?EIO=3&transport=websocket' failed: Invalid frame header
I tried many things, like changing https to http, lowering the Socket.IO version, etc., but nothing worked for me. Please help me with the cause of the problem, so that I can pinpoint the error in my application. I don't want to go for other COMET protocols.
Use the same version of socket.io
and socket.io-client
on both server and client.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With