Replies: 1 comment
-
If I understand correctly, you need to only enable the WebSocket transport: const socket = io("https://example.com", { transports: ["websocket"] }); Reference: https://socket.io/docs/v3/client-initialization/#transports You could also configure CORS on the server: https://socket.io/docs/v3/handling-cors/ |
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.
-
wscat -c wss... connects w/o extra security configs,
but ReactJS client "blocked by CORS policy" on io()
I'm hoping for wss
the error also is not thrown by the method so I must set a timeout then disconnect()....
Beta Was this translation helpful? Give feedback.
All reactions