1. Создаем консольное приложение
2. Install-Package SocketIoClientDotNet
using System; using Quobject.SocketIoClientDotNet.Client; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { var socket = IO.Socket("http://localhost:5000/server.js"); socket.On(Socket.EVENT_CONNECT, () => { socket.Emit("message", "0"); }); socket.On("hi", (data) => { Console.WriteLine(data); socket.Disconnect(); }); Console.ReadLine(); } } }
Статьи:
https://github.com/Quobject/SocketIoClientDotNet