NetConduit.WebSocket 2.3.2

This package has a SemVer 2.0.0 package version: 2.3.2+build.20260508105348.9acad5c.
dotnet add package NetConduit.WebSocket --version 2.3.2
                    
NuGet\Install-Package NetConduit.WebSocket -Version 2.3.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="NetConduit.WebSocket" Version="2.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetConduit.WebSocket" Version="2.3.2" />
                    
Directory.Packages.props
<PackageReference Include="NetConduit.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 NetConduit.WebSocket --version 2.3.2
                    
#r "nuget: NetConduit.WebSocket, 2.3.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 NetConduit.WebSocket@2.3.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=NetConduit.WebSocket&version=2.3.2
                    
Install as a Cake Addin
#tool nuget:?package=NetConduit.WebSocket&version=2.3.2
                    
Install as a Cake Tool

NetConduit

NuGet License: MIT

Transport-agnostic stream multiplexer for .NET — Multiple virtual channels over a single bidirectional stream.

N streams → 1 stream (mux) → N streams (demux)

Features

  • Multiple channels — Many logical streams over one connection
  • Credit-based backpressure — Flow control prevents overwhelming receivers
  • Priority queuing — Higher priority frames sent first
  • Auto-reconnection — Channel state restored after disconnect
  • Native AOT — No reflection in core library
  • Zero dependencies — Only BCL types
  • Modern .NET — Targets .NET 8, 9, and 10

Quick Start

dotnet add package NetConduit
dotnet add package NetConduit.Tcp
using NetConduit;
using NetConduit.Tcp;
using NetConduit.Transits;
using System.Text.Json.Serialization;

public record ChatMessage(string User, string Text);

[JsonSerializable(typeof(ChatMessage))]
public partial class ChatContext : JsonSerializerContext { }

// Server
var listener = new TcpListener(IPAddress.Any, 5000);
listener.Start();
await using var server = StreamMultiplexer.Create(TcpMultiplexer.CreateServerOptions(listener));
server.Start();
await server.WaitForReadyAsync();

await using var transit = await server.AcceptMessageTransitAsync("chat", ChatContext.Default.ChatMessage);
await foreach (var msg in transit.ReceiveAllAsync())
    Console.WriteLine($"[{msg.User}] {msg.Text}");

// Client
await using var client = StreamMultiplexer.Create(TcpMultiplexer.CreateOptions("localhost", 5000));
client.Start();
await client.WaitForReadyAsync();

await using var transit = await client.OpenMessageTransitAsync("chat", ChatContext.Default.ChatMessage);
await transit.SendAsync(new ChatMessage("Alice", "Hello!"));

Packages

Package Description
NetConduit Core multiplexer + transits
NetConduit.Tcp TCP transport
NetConduit.WebSocket WebSocket transport
NetConduit.Udp UDP with reliability layer
NetConduit.Ipc IPC (loopback/Unix sockets)
NetConduit.Quic QUIC transport

Architecture

┌──────────────────────────────────────────────────────────────────────────────┐
│  Application                                                                 │
├──────────────────────────────────────────────────────────────────────────────┤
│  Transit Layer (Optional)                                                    │
│  ┌──────────────┐  ┌──────────────┐  ┌───────────────────┐  ┌─────────────┐  │
│  │MessageTransit│  │ DeltaTransit │  │DuplexStreamTransit│  │StreamTransit│  │
│  └──────────────┘  └──────────────┘  └───────────────────┘  └─────────────┘  │
├──────────────────────────────────────────────────────────────────────────────┤
│  NetConduit Core                                                             │
│  - Frame encoding/decoding                                                   │
│  - Channel management                                                        │
│  - Credit-based backpressure                                                 │
│  - Priority queuing                                                          │
│  - Auto-reconnection                                                         │
├──────────────────────────────────────────────────────────────────────────────┤
│  Transport Layer (Pluggable)                                                 │
│  ┌─────┐  ┌─────────┐  ┌─────┐  ┌─────┐  ┌──────┐                            │
│  │ TCP │  │WebSocket│  │ UDP │  │ IPC │  │ QUIC │                            │
│  └─────┘  └─────────┘  └─────┘  └─────┘  └──────┘                            │
└──────────────────────────────────────────────────────────────────────────────┘

Samples

Sample Description
GroupChat Multi-user chat (TCP + WebSocket)
FileTransfer Parallel file transfers with progress
Pong Multiplayer game with delta state sync
RemoteShell SSH-like remote command execution
RpcFramework Type-safe JSON-RPC pattern
TcpTunnel Port forwarding like ngrok
Scoreboard Live leaderboard with reconnection
dotnet run --project samples/NetConduit.Samples.GroupChat -- server tcp 5000
dotnet run --project samples/NetConduit.Samples.GroupChat -- client tcp 5000 127.0.0.1 Alice

Documentation

Full documentation at docs/:

Building

dotnet build
dotnet test

License

See LICENSE.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.3.2 29 5/8/2026
2.3.1 28 5/7/2026
2.3.0 21 5/6/2026
2.2.2 21 5/6/2026
2.2.0 19 5/6/2026
2.1.0 55 4/22/2026
2.0.1 41 4/14/2026
2.0.0 41 3/11/2026
1.2.6 20,739 12/6/2025
1.2.5 135 12/6/2025
1.2.4 56 12/6/2025
1.2.3 100 12/5/2025
1.2.2 58 12/5/2025
1.2.1 47 12/5/2025
1.1.4 259 12/5/2025
1.1.2 533 12/4/2025
1.0.2 49 12/4/2025
1.0.1 55 12/4/2025

## New Apps
* Bump `net_conduit_tcp` from `2.3.1` to `2.3.2`. See [changelog](https://github.com/Kiryuumaru/NetConduit/compare/net_conduit_tcp/2.3.1...net_conduit_tcp/2.3.2)
* Bump `net_conduit_websocket` from `2.3.1` to `2.3.2`. See [changelog](https://github.com/Kiryuumaru/NetConduit/compare/net_conduit_websocket/2.3.1...net_conduit_websocket/2.3.2)
* Bump `net_conduit_udp` from `2.3.1` to `2.3.2`. See [changelog](https://github.com/Kiryuumaru/NetConduit/compare/net_conduit_udp/2.3.1...net_conduit_udp/2.3.2)
* Bump `net_conduit_ipc` from `2.3.1` to `2.3.2`. See [changelog](https://github.com/Kiryuumaru/NetConduit/compare/net_conduit_ipc/2.3.1...net_conduit_ipc/2.3.2)
* Bump `net_conduit_quic` from `2.3.1` to `2.3.2`. See [changelog](https://github.com/Kiryuumaru/NetConduit/compare/net_conduit_quic/2.3.1...net_conduit_quic/2.3.2)

## What's Changed
* refactor: Namespace restructuring and unhappy path tests by @Kiryuumaru in https://github.com/Kiryuumaru/NetConduit/pull/77
* test: add nested mux tests (mux-over-channel) by @Kiryuumaru in https://github.com/Kiryuumaru/NetConduit/pull/76

**Full Changelog**: https://github.com/Kiryuumaru/NetConduit/compare/build.20260507062105.61e6d12...build.20260508105348.9acad5c