WASSocket 1.0.0
dotnet add package WASSocket --version 1.0.0
NuGet\Install-Package WASSocket -Version 1.0.0
<PackageReference Include="WASSocket" Version="1.0.0" />
<PackageVersion Include="WASSocket" Version="1.0.0" />
<PackageReference Include="WASSocket" />
paket add WASSocket --version 1.0.0
#r "nuget: WASSocket, 1.0.0"
#:package WASSocket@1.0.0
#addin nuget:?package=WASSocket&version=1.0.0
#tool nuget:?package=WASSocket&version=1.0.0
๐ WASSocket C# Client SDK
High performance WebSocket client for WASSocket Server.
Designed for realtime apps, games, tools, and backend services.
โจ Features
- โ WebSocket transport
- โ Event-based API (emit / on)
- โ Binary protocol ready
- โ Room support (join / leave)
- โ Auto Ping / Pong
- โ ACK support (request / response)
- โ Async / Await friendly
- โ Cross-platform (.NET 6+)
- โ Unity compatible
- โ Single-file SDK
๐ฆ Installation
Using NuGet:
dotnet add package WASSocket
Or via Visual Studio NuGet Manager.
๐ Quick Start
using WASSocket;
class Program
{
static async Task Main()
{
var socket = new WASSocketClient("ws://localhost:3000");
socket.On("chat", msg =>
{
Console.WriteLine("Message: " + msg);
});
await socket.ConnectAsync();
await socket.JoinAsync("room1");
await socket.EmitAsync("chat", "Hello from C#");
Console.ReadLine();
}
}
๐ก API Reference ๐ Connect
await socket.ConnectAsync();
โ Disconnect
await socket.DisconnectAsync();
๐ค Emit Event
await socket.EmitAsync("eventName", data);
With ACK:
var response = await socket.EmitAsync("login", payload, waitAck: true);
๐ฅ Listen Event
socket.On("chat", data =>
{
Console.WriteLine(data);
});
๐ Join Room
await socket.JoinAsync("room1");
๐ช Leave Room
await socket.LeaveAsync("room1");
โ๏ธ Requirements
.NET 6.0 or newer
WebSocket supported operating system
๐ Security
Supports secure WebSocket (WSS) and token authentication.
Example:
var socket = new WASSocketClient("wss://yourserver.com?token=YOUR_TOKEN");
##๐งช Debug Tips
Enable console logs to monitor connection status and packets.
๐บ๏ธ Roadmap
๐ Auto reconnect improvements
๐ฆ Offline message queue
โก Binary encoder optimization
๐ Built-in encryption
๐ Metrics monitoring
๐ฎ Unity package support
๐ค Contributing
Pull requests are welcome. Feel free to open issues and feature requests.
๐ License
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 125 | 1/23/2026 |