jabolsoft / SocketIoClientDotNet

Socket.IO Client Library for .Net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocketIoClientDotNet

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

Socket.IO Client Library for .Net

  • NuGet Package: SocketIoClientDotNet

This is the Socket.IO Client Library for C#, which is ported from the JavaScript client.

See also: EngineIoClientDotNet

Installation

Nuget install:

Install-Package SocketIoClientDotNet

Usage

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.

Features

This library supports all of the features the JS client does, including events, options and upgrading transport.

Framework Versions

.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, Unity3D, Xamarin-iOS, Xamarin-MonoTouch, Xamarin-Android

License

MIT

Support me

If you like this project you may support me by donating something, starring this repository or reporting bugs and ideas in the issue section.

Donate PayPal Donate Bitcoins Report issue

Thank you!

List of donators:

  • Reinis Kopmanis - $20
  • Evan Reeves - $16
  • Gianni Angelozzi - $30
  • Robert Sachar - $75
  • Graffiti X - $30

About

Socket.IO Client Library for .Net

License:MIT License


Languages

Language:C# 93.3%Language:JavaScript 6.4%Language:HTML 0.3%