clystian / EngineIoClientDotNet

Engine.IO Client Library for .Net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THIS PROJECT IS DEPRECATED

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

EngineIoClientDotNet

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

Engine.IO Client Library for .Net

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

Installation

Nuget install:

Install-Package EngineIoClientDotNet
  • NuGet Package: EngineIoClientDotNet
Usage

EngineIoClientDotNet has a similar api to those of the JavaScript client.

You can use Socket to connect:

var socket = new Socket("ws://localhost");
socket.On(Socket.EVENT_OPEN, () =>
{
	socket.Send("hi", () =>
	{		
		socket.Close();
	});
});
socket.Open();

Receiving data

var socket = new Socket("ws://localhost");
socket.On(Socket.EVENT_OPEN, () =>
{
	socket.On(Socket.EVENT_MESSAGE, (data) =>
	{
		Console.WriteLine((string)data);
	});
});
socket.Open();            

Features

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

Framework Versions

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

License

MIT

About

Engine.IO Client Library for .Net

License:MIT License


Languages

Language:C# 96.6%Language:JavaScript 3.4%