+ 3

How to conect C# client to Nodejs server

i want use socket.io in node js server ,and connect to c# form application

25th Nov 2020, 4:34 PM
iBahman🇮🇷
iBahman🇮🇷 - avatar
1 Odpowiedź
+ 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
25th Nov 2020, 7:32 PM
Julian Bents
Julian Bents - avatar