A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Quobject/SocketIoClientDotNet below:

Quobject/SocketIoClientDotNet: Socket.IO Client Library for .Net

THIS PROJECT IS DEPRECATED

Component is not maintained anymore. See Quobject/EngineIoClientDotNet#69 for more information.

====================

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

Nuget install:

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.

.NETFramework v3.5, .NETFramework v4.0, .NETFramework v4.5

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4