NextGenSoftware.WebSocket
2.0.2
dotnet add package NextGenSoftware.WebSocket --version 2.0.2
NuGet\Install-Package NextGenSoftware.WebSocket -Version 2.0.2
<PackageReference Include="NextGenSoftware.WebSocket" Version="2.0.2" />
<PackageVersion Include="NextGenSoftware.WebSocket" Version="2.0.2" />
<PackageReference Include="NextGenSoftware.WebSocket" />
paket add NextGenSoftware.WebSocket --version 2.0.2
#r "nuget: NextGenSoftware.WebSocket, 2.0.2"
#:package NextGenSoftware.WebSocket@2.0.2
#addin nuget:?package=NextGenSoftware.WebSocket&version=2.0.2
#tool nuget:?package=NextGenSoftware.WebSocket&version=2.0.2
NextGenSoftware.WebSocket
A lightweight, high-performance WebSocket client for .NET — the real-time communication backbone of HoloNET and the OASIS Omniverse ecosystem.
Part of the OASIS Omniverse v2.0 Reboot — the biggest NextGen Software release in years. Visit oasisomniverse.one.
Features
- Clean event-driven API —
OnConnected,OnDisconnected,OnDataReceived,OnError,OnDataSent - Async/await first with proper cancellation support
- Automatic reconnection with configurable retry logic
- Binary and text message support
- Production-hardened — used in HoloNET for all Holochain conductor WebSocket communication
- Multi-target: .NET 8, .NET 9, .NET 10
Installation
dotnet add package NextGenSoftware.WebSocket
Quick Start
using NextGenSoftware.WebSocket;
var client = new WebSocketClient("wss://localhost:8888");
client.OnConnected += (s, e) => Console.WriteLine("Connected!");
client.OnDataReceived += (s, e) => Console.WriteLine($"Received {e.RawData.Length} bytes");
client.OnError += (s, e) => Console.WriteLine($"Error: {e.Reason}");
await client.Connect();
await client.SendRawDataAsync(myBytes);
await client.Disconnect();
Events
| Event | Description |
|---|---|
OnConnected |
Connection established |
OnDisconnected |
Connection closed (cleanly or otherwise) |
OnDataReceived |
Raw data arrived from the server |
OnDataSent |
Data successfully sent |
OnError |
WebSocket error occurred |
Part of the OASIS Omniverse
This package powers HoloNET — the world's first .NET and Unity client for Holochain (upgraded to Holochain 0.6.2) — and is used across all 85+ OASIS API NuGet packages, STAR ODK, and OurWorld.
MIT — Copyright (c) NextGen Software Ltd 2019 - 2026
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- NextGenSoftware.ErrorHandling (>= 2.0.2)
- NextGenSoftware.Logging (>= 2.0.2)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on NextGenSoftware.WebSocket:
| Package | Downloads |
|---|---|
|
NextGenSoftware.Holochain.HoloNET.Client
The world's first .NET & Unity client for Holochain. Fully upgraded to Holochain 0.6.2 — supports Kitsune2 networking, QUIC transport, updated AdminWebsocket and AppWebsocket conductor APIs, WebSocket handshake authentication headers, and the new conductor YAML config format. Lightweight version: does not bundle the Holochain binaries. Use NextGenSoftware.Holochain.HoloNET.Client.Embedded if you want the conductor auto-started and managed for you. |
|
|
NextGenSoftware.Holochain.HoloNET.Client.Embedded
The world's first .NET & Unity client for Holochain. Fully upgraded to Holochain 0.6.2 — supports Kitsune2 networking, QUIC transport, updated conductor APIs, and WebSocket handshake authentication headers. This version bundles hc.exe and holochain.exe (v0.6.2) so the Holochain Conductor is auto-started and managed for you. Set HolochainConductorMode.UseEmbedded to activate. For the lightweight version without binaries use NextGenSoftware.Holochain.HoloNET.Client. |
|
|
NextGenSoftware.Holochain.HoloNET.ORM
Powerful ORM built on top of HoloNET Client for Holochain. Enables rapid hApp development via HoloNETEntryBase, HoloNETAuditEntryBase, HoloNETCollection and HoloNETObservableCollection — call Load, Save, Delete with automatic change tracking and rollback. Upgraded to Holochain 0.6.2. Lightweight version: use NextGenSoftware.Holochain.HoloNET.ORM.Embedded if you want the conductor auto-started. |
|
|
NextGenSoftware.Holochain.HoloNET.ORM.Embedded
Powerful ORM built on top of HoloNET Client for Holochain. Same rapid hApp development experience as NextGenSoftware.Holochain.HoloNET.ORM — HoloNETEntryBase, HoloNETAuditEntryBase, HoloNETCollection, HoloNETObservableCollection — but references NextGenSoftware.Holochain.HoloNET.Client.Embedded so the Holochain Conductor (v0.6.2) is auto-started and managed for you. For the lightweight version use NextGenSoftware.Holochain.HoloNET.ORM. |
|
|
NextGenSoftware.OASIS.API.Providers.ONIONProtocolOASIS
ONION Protocol OASIS Provider — integrates the OASIS API with the ONION (Open Network Infrastructure for Omniverse Nodes) privacy and routing protocol. |
GitHub repositories
This package is not used by any popular GitHub repositories.
## v2.0.1 — OASIS Omniverse Reboot (2026)
Part of the biggest NextGen Software release in years! The full OASIS Omniverse ecosystem — powering Our World, the OASIS API (85+ NuGet packages), HoloNET (Holochain .NET client), STAR ODK, and more — has been fully relaunched and rebranded at https://oasisomniverse.one/
After years of continuous development this is the first major v2 release, representing a complete overhaul and modernisation of the entire NextGen Software foundation.
### What's New in v2.0.1
- Added .NET 10 support: now multi-targeting net8.0, net9.0, and net10.0 for future-proof compatibility
- Copyright updated: NextGen Software Ltd 2019 - 2026
- Part of the unified OASIS Omniverse ecosystem at https://oasisomniverse.one/
- Significantly improved error handling, robustness, and API consistency
- Full alignment with the new OASIS Omniverse architecture (WEB4 through WEB10 API tiers)
- All packages updated with correct metadata, repository URLs, and project URLs
- Multiple bug fixes and stability improvements
- Open source under MIT licence -- https://github.com/NextGenSoftwareUK/NextGenSoftware-Libraries