====================
Socket.IO Client Library for .Net
This is the Socket.IO Client Library for C#, which is ported from the JavaScript client version 1.1.0.
See also: EngineIoClientDotNet
Install-Package SocketIoClientDotNet
SocketIoClientDotNet has a similar api to those of the JavaScript client.
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();
More examples can be found in unit tests acting against the test server.
This library supports all of the features the JS client does, including events, options and upgrading transport.
.Net Framework 3.5, .Net Framework 4.0, .Net Framework 4.5, Windows 8, Windows 8.1, Windows Phone 8, Windows Phone 8.1, Mono, Xamarin-iOS, Xamarin-MonoTouch, Xamarin-Android