socket.io-client-dart icon indicating copy to clipboard operation
socket.io-client-dart copied to clipboard

can't connected to server

Open Sabbir-Rahman opened this issue 2 years ago • 1 comments

try using version 2.0.1 and 2.0.0 where my socket io server is ^4.0.0. My server is set with nginx reverese proxy. www.mydomain.com/socket working fine in react but we trying with socket = IO.io('http://mydomain.com', IO.OptionBuilder() .setPath("/socket") .enableForceNew() .setTimeout(100) .build() );

all the time it added an extra 0 like http://mydomain.com:0
even we try with http://mydomain.com:port_number which is redirect by nginx but it also add 0 here at the end of address.

Sabbir-Rahman avatar Jan 14 '23 08:01 Sabbir-Rahman

Are you connecting through https or just http? And have you setup proxy upgrade in your config?

I've tested and using it with slightly different setup but works only on http form Flutter app.

markosole avatar Feb 13 '23 23:02 markosole