Altruist.Protocol 0.10.1-beta

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

Altruist.Protocol

Wire-protocol primitives for the Altruist framework. Shared by the server (Altruist) and client (Altruist.Client) packages so the on-the-wire shape has exactly one source of truth.

What's in here

Type Purpose
MessageEnvelope The fixarray(3) [MessageCode, Header, Message] shape every server→client packet ships in.
PacketHeader Routing metadata (timestamp, sender, receiver).
IPacketBase Interface every packet implements; declares uint MessageCode { get; set; }.
IPacket / ITypedModel Marker interfaces above IPacketBase.
PacketCodes Reserved framework message codes (Sync = 3, Altruist = 4, etc.). User packets start at 1000+.
PacketHeaders Static helper exposing PacketHeaders.Broadcast.
PacketBaseFormatter MessagePack formatter that handles polymorphic IPacketBase serialization (used by Core's typeless paths).

Why a separate package

Three implementations used to define the same wire shape:

  1. The server's Altruist (Core) — for outbound MessageEnvelope encoding
  2. The test harness's Altruist.Testing/Clients/ — for integration-test clients
  3. The Unity client's PacketRouter.cs — hand-rolled MessagePack skip parser

When any one drifted, packets vanished silently in production. Centralising the wire types here lets the server, the test clients, and the Unity client all bind against the same DLL.

Target frameworks

netstandard2.1 and net9.0. The first is the broadest portable contract (Unity Mono / IL2CPP, Godot, Mono, Blazor, .NET Framework 4.8 via shims); the second lets server-side consumers use it natively.

AOT

The MessagePack-decorated structs (MessageEnvelope, PacketHeader) work with reflection-emit on Mono / .NET. For stripped runtimes (IL2CPP, NativeAOT, Blazor AOT), MessagePack source-generated formatters can be added — see the MessagePack documentation for mpc / MessagePack.Generator setup.

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

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Altruist.Protocol:

Package Downloads
Altruist

Core module for Altruist framework.

Altruist.Client

Client framework for the Altruist wire protocol — TCP, UDP, WebSocket transports with the same MessagePack envelope encoding the server uses. AOT-friendly: the receive path byte-skips the envelope and only deserializes the inner packet as a known concrete type. Drop-in DLL for Unity, Godot, Blazor, or any .NET client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.1-beta 0 11/23/2026