HavenDV / H.Socket.IO

This is the Socket.IO client for .NET, which is based on ClientWebSocket, provide a simple way to connect to the Socket.IO server. The target framework is .NET Standard 2.0
MIT License
100 stars 15 forks source link

Support socketio server v3 and v4 #18

Open tommy19970714 opened 3 years ago

tommy19970714 commented 3 years ago

In the following issue, he says that v2 of socketio server is not supported and v3 and v4 are supported, but when I tried it, it works with v2 but not with v3 and v4. https://github.com/HavenDV/H.Socket.IO/issues/16

I referred to the test code, but this project has been tested only with v2. https://github.com/HavenDV/H.Socket.IO/blob/master/src/tests/Socket.IO.ChatExample/chat.js

As noted below, there seems to be a disruptive change in socketio v2 and v3. https://socket.io/docs/v3/migrating-from-2-x-to-3-0/index.html

Can you support v3 and v4 of socketio server?

HavenDV commented 3 years ago

At the moment, I do not use this library in my projects, so I provide support as I have free time. It will help me a lot if you provide me with js code for simple servers for each version of Socket.IO. This way I can create local tests and make the client work.