socket.io-client-dart
socket.io-client-dart copied to clipboard
can't connected to server
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.
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.