ConnectError: WebSocketException: Connection to 'https://admin.heartlinkdating.com:0/socket.io/?EIO=4&transport=websocket#' was not upgraded to websocket
I have handled the server side of the port part is websocket and polling but still getting the error. Looking forward to your answers. Thanks
I faced the same issue. Did you find any solutions regarding it
facing the same issue. any update ? @Nabinda @tungbnt
seems its adding port 0 on url https://admin.heartlinkdating.com:0 <---
also setPath is also not working
I faced the same issue. Did you find any solutions regarding it
Most of the time, this issue is not caused by this library itself. Instead, it may be caused by a server configuration issue either on Nginx or Apache, or by a socket version difference between the server and the client.
FYI Here is the solution: https://github.com/rikulo/socket.io-client-dart/issues/319
Add extra HTTP-Header {'Upgrade': false} just solved my problem. Here's my sample code.
socket = IO.io(
server,
IO.OptionBuilder()
.enableAutoConnect()
.enableForceNew()
.setTransports(['websocket']).setExtraHeaders({'Upgrade': false}).build());
Add extra HTTP-Header
{'Upgrade': false}just solved my problem. Here's my sample code.socket = IO.io( server, IO.OptionBuilder() .enableAutoConnect() .enableForceNew() .setTransports(['websocket']).setExtraHeaders({'Upgrade': false}).build());
socket_io_client: ^1.0.1