• Stars
    star
    82
  • Rank 396,546 (Top 8 %)
  • Language
    C#
  • License
    MIT License
  • Created over 10 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Engine.IO Client Library for .Net

EngineIoClientDotNet

Engine.IO Client Library for .Net

Fork from https://github.com/joewen/EngineIoClientDotNet.

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

Installation

Nuget install:

Install-Package EngineIoClientDotNet.Standard
  • NuGet Package: EngineIoClientDotNet.Standard
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

.Net Standard 2.0

License

MIT