Rymote.Synapse.Net 1.0.0

dotnet add package Rymote.Synapse.Net --version 1.0.0
                    
NuGet\Install-Package Rymote.Synapse.Net -Version 1.0.0
                    
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="Rymote.Synapse.Net" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rymote.Synapse.Net" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Rymote.Synapse.Net" />
                    
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 Rymote.Synapse.Net --version 1.0.0
                    
#r "nuget: Rymote.Synapse.Net, 1.0.0"
                    
#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 Rymote.Synapse.Net@1.0.0
                    
#: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=Rymote.Synapse.Net&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Rymote.Synapse.Net&version=1.0.0
                    
Install as a Cake Tool

Rymote.Synapse.Net

Mutually-authenticated TCP+TLS and QUIC transports for Rymote.Synapse.

What it provides

  • ITransport implementations for TCP+TLS (Rymote.Synapse.Net.Tcp.TcpTransport) and QUIC (Rymote.Synapse.Net.Quic.QuicTransport).
  • IStream abstraction (declared in Rymote.Synapse.Abstractions) for multiplexed bidirectional streams within a connection.
  • Unified frame codec (length-prefixed binary; FrameKind + StreamId + payload).
  • MessagePack handshake protocol with protocol-version, node-identity, and capability negotiation.
  • Heartbeat-based liveness detection (Ping/Pong on stream 0).
  • DI extensions: .UseTcpTransport(...) and .UseQuicTransport(...).

What it doesn't do

  • Reconnect. Connections are single-use. Rymote.Synapse.Cluster (forthcoming) handles reconnect with exponential backoff.
  • Cluster membership. Same — Cluster's job.
  • Pre-shared keys, application tokens. mTLS only.

Requirements

  • TCP transport: any platform with TLS 1.3 support. .NET 10 defaults to TLS 1.3.
  • QUIC transport: Windows 11 / Server 2022, or Linux with msquic installed. Throws PlatformNotSupportedException at construction on unsupported platforms.

Quickstart

ServiceCollection services = new();
services.AddLogging();

services.AddSynapse()
    .UseTcpTransport(options =>
    {
        options.ServerCertificate = LoadServerCert();
        options.ClientCertificate = LoadClientCert();
        options.CertificateValidationCallback = (sender, certificate, chain, errors) =>
        {
            // production: validate against your trust store
            return errors == System.Net.Security.SslPolicyErrors.None;
        };
    });

ServiceProvider provider = services.BuildServiceProvider();
ITransport transport = provider.GetRequiredService<ITransport>();

// Listen
await using IListener listener = await transport.ListenAsync(new IPEndPoint(IPAddress.Any, 8443), cancellationToken);
await foreach (IConnection connection in listener.AcceptAsync(cancellationToken))
{
    await foreach (IStream stream in connection.AcceptStreamsAsync(cancellationToken))
    {
        // handle stream
    }
}

// Or connect
await using IConnection connection = await transport.ConnectAsync(new IPEndPoint(serverAddress, 8443), cancellationToken);
await using IStream stream = await connection.OpenStreamAsync(cancellationToken);
await stream.SendAsync(payloadBytes, FrameKind.Data, cancellationToken);

For QUIC, replace .UseTcpTransport with .UseQuicTransport and the same options shape (plus ApplicationProtocols if customising ALPN).

Wire format

+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|   uint32 length (big-endian)      | uint8  | uint32 stream id (big-endian)    |
+-----------------------------------+--------+----------------------------------+
|                                  payload                                      |
+-------------------------------------------------------------------------------+
  • length counts: kind (1) + streamId (4) + payload bytes.
  • Max frame size: 64 MiB by default; configurable via NetTransportOptions.MaxFrameSize.

Reserved stream IDs

  • Stream 0: control (handshake, ping/pong, goodbye).
  • Odd IDs (1, 3, 5, ...): initiator-opened streams.
  • Even non-zero IDs (2, 4, 6, ...): acceptor-opened streams.
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 (1)

Showing the top 1 NuGet packages that depend on Rymote.Synapse.Net:

Package Downloads
Rymote.Synapse.Cluster

Cross-node clustering for Rymote.Synapse: full-mesh peer connections, reconnect, subscription propagation, routing, AtLeastOnce across peers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 151 5/18/2026