Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Quobject/SocketIoClientDotNet
Socket.IO Client Library for .Net
https://github.com/Quobject/SocketIoClientDotNet
Last synced: 2 months ago
JSON representation
Socket.IO Client Library for .Net
- Host: GitHub
- URL: https://github.com/Quobject/SocketIoClientDotNet
- Owner: Quobject
- License: mit
- Created: 2014-09-28T03:44:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T11:22:56.000Z (over 4 years ago)
- Last Synced: 2024-10-04T10:35:22.336Z (3 months ago)
- Language: C#
- Size: 13.6 MB
- Stars: 791
- Watchers: 68
- Forks: 248
- Open Issues: 61
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-unity3d - SocketIoClientDotNet - Socket.IO Client Library for .Net (Open Source Repositories / Networking)
- awesome-opensource-unity - SocketIoClientDotNet - Socket.IO Client Library for .Net. (Open Source Packages / Networking)
README
# THIS PROJECT IS DEPRECATED
Component is not maintained anymore. See https://github.com/Quobject/EngineIoClientDotNet/issues/69 for more information.#### SocketIoClientDotNet
====================Socket.IO Client Library for .Net
* NuGet Package: [![SocketIoClientDotNet](https://img.shields.io/nuget/v/SocketIoClientDotNet.svg?maxAge=2592000)](https://www.nuget.org/packages/SocketIoClientDotNet/)
This is the Socket.IO Client Library for C#, which is ported from the [JavaScript client](https://github.com/Automattic/socket.io-client) version [1.1.0](https://github.com/socketio/socket.io-client/releases/tag/1.1.0).
See also: [EngineIoClientDotNet](https://github.com/Quobject/EngineIoClientDotNet)
#### Installation
[Nuget install](https://www.nuget.org/packages/SocketIoClientDotNet/):
```
Install-Package SocketIoClientDotNet
```#### Usage
SocketIoClientDotNet has a similar api to those of the [JavaScript client](https://github.com/Automattic/socket.io-client).```cs
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](https://github.com/Quobject/SocketIoClientDotNet/blob/master/Src/SocketIoClientDotNet.Tests.net45/ClientTests/ServerConnectionTest.cs) acting against the [test server](https://github.com/Quobject/SocketIoClientDotNet/blob/master/TestServer/server.js).
#### 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](http://opensource.org/licenses/MIT)