+ 3
How to conect C# client to Nodejs server
i want use socket.io in node js server ,and connect to c# form application
1 ответ
+ 3
using Quobject.SocketIoClientDotNet.Client; var socket = IO.Socket("http://localhost:7000"); socket.On(Socket.EVENT_CONNECT, () => { socket.Emit("hi"); }); socket.On("hi", (data) => { Console.WriteLine(data); socket.Disconnect(); }); Console.ReadLine()
Be sure to use socket.io 1.3.5
https://stackoverflow.com/questions/30816849/how-to-connect-c-sharp-with-node-js-via-socket-io