NextGenSoftware.WebSocket 2.0.2

dotnet add package NextGenSoftware.WebSocket --version 2.0.2
                    
NuGet\Install-Package NextGenSoftware.WebSocket -Version 2.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NextGenSoftware.WebSocket" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NextGenSoftware.WebSocket" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="NextGenSoftware.WebSocket" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NextGenSoftware.WebSocket --version 2.0.2
                    
#r "nuget: NextGenSoftware.WebSocket, 2.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NextGenSoftware.WebSocket@2.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NextGenSoftware.WebSocket&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=NextGenSoftware.WebSocket&version=2.0.2
                    
Install as a Cake Tool

NextGenSoftware.WebSocket

A lightweight, high-performance WebSocket client for .NET — the real-time communication backbone of HoloNET and the OASIS Omniverse ecosystem.

NuGet License: MIT .NET

Part of the OASIS Omniverse v2.0 Reboot — the biggest NextGen Software release in years. Visit oasisomniverse.one.


Features

  • Clean event-driven APIOnConnected, 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
2.0.2 0 7/14/2026
2.0.1 0 7/14/2026
2.0.0 545 5/26/2024
1.2.0 977 5/22/2023
1.1.6 1,180 12/29/2022
1.1.5 772 12/28/2022
1.1.4 837 11/27/2022
1.1.3 6,270 8/27/2022
1.1.2 1,084 8/25/2022
1.1.1 1,344 8/22/2022
1.1.0 687 8/18/2022
1.0.0 2,351 8/8/2022

## 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