NetConduit.Transit.Message
3.0.1
dotnet add package NetConduit.Transit.Message --version 3.0.1
NuGet\Install-Package NetConduit.Transit.Message -Version 3.0.1
<PackageReference Include="NetConduit.Transit.Message" Version="3.0.1" />
<PackageVersion Include="NetConduit.Transit.Message" Version="3.0.1" />
<PackageReference Include="NetConduit.Transit.Message" />
paket add NetConduit.Transit.Message --version 3.0.1
#r "nuget: NetConduit.Transit.Message, 3.0.1"
#:package NetConduit.Transit.Message@3.0.1
#addin nuget:?package=NetConduit.Transit.Message&version=3.0.1
#tool nuget:?package=NetConduit.Transit.Message&version=3.0.1
NetConduit
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.Transport.Tcp
dotnet add package NetConduit.Transit.Message
using NetConduit;
using NetConduit.Transport.Tcp;
using NetConduit.Transit.Message;
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 + base interfaces |
NetConduit.Transit.Stream |
Single-channel Stream wrapper |
NetConduit.Transit.DuplexStream |
Bidirectional Stream over two channels |
NetConduit.Transit.Message |
Typed JSON message framing |
NetConduit.Transit.DeltaMessage |
State-sync via JSON delta diffs |
NetConduit.Transport.Tcp |
TCP transport |
NetConduit.Transport.WebSocket |
WebSocket transport |
NetConduit.Transport.Udp |
UDP with reliability layer |
NetConduit.Transport.Ipc |
IPC (loopback/Unix sockets) |
NetConduit.Transport.Quic |
QUIC transport |
Architecture
┌──────────────────────────────────────────────────────────────────────────────┐
│ Application │
├──────────────────────────────────────────────────────────────────────────────┤
│ Transit Layer (Optional) │
│ ┌──────────────┐ ┌──────────────┐ ┌───────────────────┐ ┌─────────────┐ │
│ │MessageTransit│ │ DeltaMessageTransit │ │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/GroupChatSample -- server tcp 5000
dotnet run --project samples/GroupChatSample -- client tcp 5000 127.0.0.1 Alice
Documentation
Full documentation at docs/:
- Getting Started
- Transports — TCP, WebSocket, UDP, IPC, QUIC
- Transits — MessageTransit, DeltaMessageTransit, DuplexStream, Stream
- Concepts — Channels, backpressure, priority, reconnection
- API Reference
Building
dotnet build
dotnet test
License
See LICENSE.
| Product | Versions 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. |
-
net10.0
- NetConduit (>= 3.0.1)
-
net8.0
- NetConduit (>= 3.0.1)
-
net9.0
- NetConduit (>= 3.0.1)
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 |
|---|---|---|
| 3.0.1 | 0 | 5/14/2026 |
## New Apps
* Bump `net_conduit_transit_stream` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transit_stream/3.0.1)
* Bump `net_conduit_transit_duplex_stream` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transit_duplex_stream/3.0.1)
* Bump `net_conduit_transit_message` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transit_message/3.0.1)
* Bump `net_conduit_transit_delta_message` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transit_delta_message/3.0.1)
* Bump `net_conduit_transport_tcp` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transport_tcp/3.0.1)
* Bump `net_conduit_transport_websocket` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transport_websocket/3.0.1)
* Bump `net_conduit_transport_udp` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transport_udp/3.0.1)
* Bump `net_conduit_transport_ipc` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transport_ipc/3.0.1)
* Bump `net_conduit_transport_quic` to `3.0.1`. See [changelog](https://github.com/Kiryuumaru/NetConduit/commits/net_conduit_transport_quic/3.0.1)
**Full Changelog**: https://github.com/Kiryuumaru/NetConduit/compare/build.20260514113647.b04936d...build.20260514145717.faa65b8