Closed michaellie99 closed 3 years ago
What's the client version / server version? If you're trying to connect to a socket.io 2.0 server with 16 client, you'll need to pass the .version(.two)
option.
What's the client version / server version? If you're trying to connect to a socket.io 2.0 server with 16 client, you'll need to pass the
.version(.two)
option.
Im using both the latest available socketio (3.0) and client(?) I dont know how to check the client version but I'm using socketio v15.2.0 for the pod installation Where do I pass this version option? It doesn't show up in the configs
@michaellie99 for socket.io 3, you need to use v16
@nuclearace thanks, Installing v16 works, I was kinda confused because the latest release version was 15.2.0, to the people having the same issue as me, the fix is changing the version of socket.io installed in the Podfile (or carthage, etc if you dont use cocoapods) to '~> 16.0.1'.
The socket connection seems to always fail, the connection seems to be found but fails to connect which led me to believe that something else is wrong in my code. Here is the class that I made to handle the socket.io request:
Here are the logs
Any help would be appreciated, thanks in advance.