自己修改了里面的一些冲突接口,已兼容.net4.8 用法: using Quobject.SocketIoClientDotNet.Client; var socket = IO.Socket("http://localhost"); socket.On(Socket.EVENT_CONNECT, () => { socket.Emit("hi"); }); socket.On("hi", (data) => { Console.WriteLine(data); socket.Disconnect(); }); Console.ReadLine();