Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Error: WebSocketException: Connection to 'https://example.com:0/socket.io/?EIO=4&transport=websocket#' was not upgraded to websocket #356

Open
Jimesh843 opened this issue Dec 6, 2023 · 2 comments
Labels

Comments

@Jimesh843
Copy link

Jimesh843 commented Dec 6, 2023

This is my code for socket connection:

socket = IO.io(
'https://example.com/',
<String, dynamic>{
'autoConnect' : false,
'transports' : ['websocket'],
'extraHeaders': {'foo': 'bar'},
},
);

I have used socket_io_client: ^2.0.3+1 and from backend i have used 4.7.3 version of node and i have also set code necessary for server. but still can't connect.

Is there any permission required on server side or from my side

@thapliyal128
Copy link

hey , you would have to add a path too , seems like your socket object is missing it

@mbaka-bilal
Copy link

hey , you would have to add a path too , seems like your socket object is missing it

hi, noob here, please can you give more details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants