rikulo / socket.io-client-dart

socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client
https://quire.io
MIT License
675 stars 185 forks source link

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

Open Jimesh843 opened 11 months ago

Jimesh843 commented 11 months ago

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 commented 11 months ago

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

mbaka-bilal commented 6 months ago

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?