itisnajim / SocketIOUnity

A Wrapper for socket.io-client-csharp to work with Unity.
MIT License
393 stars 67 forks source link

Doesn't work with socket io servers v3.x.x #24

Closed hrabkin closed 2 years ago

hrabkin commented 2 years ago

Try to change socket io server version to v3.x.x, set EIO in sample to 3

Doesn't work =(

P.S. works fine with v4.2.0

itisnajim commented 2 years ago

Change EIO to 4 And transport to websocket See:

https://github.com/doghappy/socket.io-client-csharp/blob/master/src/SocketIOClient.Test/SocketIOTests/V3/SocketIOV3Creator.cs

https://github.com/doghappy/socket.io-client-csharp/tree/master/src/socket.io-server-v3

hrabkin commented 2 years ago

Change EIO to 4 And transport to websocket See:

https://github.com/doghappy/socket.io-client-csharp/blob/master/src/SocketIOClient.Test/SocketIOTests/V3/SocketIOV3Creator.cs

https://github.com/doghappy/socket.io-client-csharp/tree/master/src/socket.io-server-v3

yes, it works with v3 with set of EIO 4 and Websocket as a transport. I curious what the reason to use the wrapper instead of compiled dll of SocketIO .Net?

itisnajim commented 2 years ago

You can use the main repo directly if you want, i've done this wrapper to facilitate & to make it easier to get a running project, working with unity objects, without struggling with the libs, compatibility, errors, and etc..