doghappy / socket.io-client-csharp

socket.io-client implemention for .NET
MIT License
715 stars 124 forks source link

how to Connect soketIO 2.x #329

Closed Princebin closed 11 months ago

Princebin commented 12 months ago

how to Connect soketIO 2.x?how setting

doghappy commented 11 months ago
            var options = new SocketIOOptions
            {
                EIO = EngineIO.V3
            };
Princebin commented 11 months ago

I have a Socket(2.0) address can get message by postman. var options = new SocketIOOptions { EIO = EngineIO.V3 }; socketIO = new SocketIO("ws://dev.terjin.com:47001/", options); socketIO.On("info", response => { Console.WriteLine(response); string text = response.GetValue(); }); socketIO.ConnectAsync(); can not get anything