NextGenSoftware.WebSocket
2.0.4
dotnet add package NextGenSoftware.WebSocket --version 2.0.4
NuGet\Install-Package NextGenSoftware.WebSocket -Version 2.0.4
<PackageReference Include="NextGenSoftware.WebSocket" Version="2.0.4" />
<PackageVersion Include="NextGenSoftware.WebSocket" Version="2.0.4" />
<PackageReference Include="NextGenSoftware.WebSocket" />
paket add NextGenSoftware.WebSocket --version 2.0.4
#r "nuget: NextGenSoftware.WebSocket, 2.0.4"
#:package NextGenSoftware.WebSocket@2.0.4
#addin nuget:?package=NextGenSoftware.WebSocket&version=2.0.4
#tool nuget:?package=NextGenSoftware.WebSocket&version=2.0.4
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 | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 is compatible. 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 is compatible. 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 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- NextGenSoftware.ErrorHandling (>= 2.0.4)
- NextGenSoftware.Logging (>= 2.0.4)
-
net10.0
- NextGenSoftware.ErrorHandling (>= 2.0.4)
- NextGenSoftware.Logging (>= 2.0.4)
-
net8.0
- NextGenSoftware.ErrorHandling (>= 2.0.4)
- NextGenSoftware.Logging (>= 2.0.4)
-
net9.0
- NextGenSoftware.ErrorHandling (>= 2.0.4)
- NextGenSoftware.Logging (>= 2.0.4)
NuGet packages (10)
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 supporting Holochain 0.7.1 and 0.7.0 — Kitsune2/iroh (QUIC) as sole network backend (tx5/WebRTC removed), new paginated DumpOpTimings admin and app API, AwaitingMemproofs app status, updated AdminWebsocket and AppWebsocket conductor APIs. 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 supporting Holochain 0.7.1 and 0.7.0 — Kitsune2/iroh (QUIC) networking, paginated DumpOpTimings, AwaitingMemproofs app status, and the complete conductor API. This version bundles hc.exe and holochain.exe (v0.7.1 or v0.7.0) 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. Supports Holochain 0.7.1 and 0.7.0. 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.7.1 or v0.7.0) 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.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.4 | 33 | 10/16/2026 |
| 2.0.3 | 416 | 7/14/2026 |
| 2.0.2 | 172 | 7/14/2026 |
| 2.0.1 | 141 | 7/14/2026 |
| 2.0.0 | 1,016 | 5/26/2024 |
| 1.2.0 | 1,004 | 5/22/2023 |
| 1.1.6 | 1,208 | 12/29/2022 |
| 1.1.5 | 791 | 12/28/2022 |
| 1.1.4 | 872 | 11/27/2022 |
| 1.1.3 | 6,313 | 8/27/2022 |
| 1.1.2 | 1,111 | 8/25/2022 |
| 1.1.1 | 1,364 | 8/22/2022 |
| 1.1.0 | 711 | 8/18/2022 |
| 1.0.0 | 2,412 | 8/8/2022 |
## v2.0.4
- NextGenSoftware.Logging: file logging no longer slows down as log files accumulate (it listed and checked every file in the log folder on every line, so apps that log a lot - like HoloNET, which logs on its WebSocket thread - timed out); writes are serialised in-process; only MaxLogFiles (default 50) log files are kept. Faulty log providers can't break logging (snapshot of providers).
- NextGenSoftware.WebSocket: the receive loop runs on the thread pool (it inherited the caller's SynchronizationContext, so WPF/WinForms apps handled every message on the UI thread and froze on any blocking call); TrySendRawDataAsync reports send failures instead of throwing.
- All NextGenSoftware libraries bumped to 2.0.4 together.
---
## 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