Closed talha-veroke closed 3 months ago
getting same issue. Did you get it?
If you really want to access "APIURL:0/socket.io/?EIO=4&transport=websocket#", then you have a problem somewhere, as "0" is not a valid port, it might be the problem here.
i have the same problem i used my server_Url without specifiying any port but the package appended the ':0/socket.io/' how do i remove that i tried specifying the port in my url but it doesnt change
My issue was resolved, it was some configuration issue on server side and our devops team resolved it.
Having this issue, While using this package.
IO.Socket socket = IO.io( APIConfiguration.SocketUrl, OptionBuilder() .setTransports(['websocket']) .disableAutoConnect() .setReconnectionAttempts(2) .setExtraHeaders({ 'access_token': await StorageService().readString(Keys.Auth_Token), }) .build(), ); socket.connect(); socket.onConnect((data) => print('connected')); socket.onConnectError((data) => print('error $data'));