LsMsgPack.SignalR
2026.11.28.1
dotnet add package LsMsgPack.SignalR --version 2026.11.28.1
NuGet\Install-Package LsMsgPack.SignalR -Version 2026.11.28.1
<PackageReference Include="LsMsgPack.SignalR" Version="2026.11.28.1" />
<PackageVersion Include="LsMsgPack.SignalR" Version="2026.11.28.1" />
<PackageReference Include="LsMsgPack.SignalR" />
paket add LsMsgPack.SignalR --version 2026.11.28.1
#r "nuget: LsMsgPack.SignalR, 2026.11.28.1"
#:package LsMsgPack.SignalR@2026.11.28.1
#addin nuget:?package=LsMsgPack.SignalR&version=2026.11.28.1
#tool nuget:?package=LsMsgPack.SignalR&version=2026.11.28.1
LsMsgPack.SignalR
A MessagePack hub protocol for ASP.NET Core SignalR on LsMsgPack, for the server and the .NET client.
- "lsmsgpack": LsMsgPack's values (exact decimals, DateTimes with their kind, DateTimeOffset with its offset, type ids for class hierarchies), for the TypeScript client
@lsmsgpack/client/signalrand .NET clients with this package. - "lsmsgpack-indexed": the same with the indexed schema in each value the server writes, so a list of objects has every name once (50 chat messages: 4,126 bytes instead of 7,214, read faster in .NET and JavaScript). Larger for a single small object.
- "messagepack": the bytes of Microsoft's MessagePack protocol (
AddMessagePackProtocol()), so the existing clients (JavaScript, .NET, Java, Swift) connect without a change. Use it instead of Microsoft's package. - The envelope is Microsoft's MessagePack protocol, field by field, for every name. About twice as fast as Microsoft's MessagePack protocol, and the values of a message are read in place.
Server
builder.Services.AddSignalR()
.AddLsMsgPackProtocol() // "lsmsgpack"
.AddLsMsgPackIndexedProtocol() // "lsmsgpack-indexed" (optional)
.AddLsMsgPackAsMessagePackProtocol(); // "messagepack", for the clients of Microsoft's protocol (optional)
.NET client
HubConnection connection = new HubConnectionBuilder()
.WithUrl("https://example.com/chat")
.AddLsMsgPackProtocol() // or .AddLsMsgPackIndexedProtocol()
.Build();
TypeScript client
import { HubConnectionBuilder } from '@microsoft/signalr';
import { LsMsgPackHubProtocol } from '@lsmsgpack/client/signalr';
const connection = new HubConnectionBuilder().withUrl('/chat').withHubProtocol(new LsMsgPackHubProtocol()).build(); // { name: 'lsmsgpack-indexed' }
Options
.AddLsMsgPackProtocol(o =>
{
o.SerializerOptions = LsMsgPackHubProtocolOptions.DefaultSerializerOptions(false); // then change what you need
o.MaxObjects = 100000; // per value (untrusted data)
});
Never schema references: SignalR writes a message once for every connection it goes to, so "lsmsgpack-indexed" has the schema inline in each value ([schema, body]; the TypeScript client writes [nil, value], both are read). Trimmed and NativeAOT apps pass the context of LsMsgPack's source generator, with the parameter and return types of the hub methods: .AddLsMsgPackProtocol(AppMsgPackContext.Default).
Documentation: docs/SignalR.md.
| Product | Versions 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 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 was computed. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- LsMsgPack (= 2026.11.28.1)
- Microsoft.AspNetCore.SignalR.Common (>= 8.0.34)
-
net8.0
- LsMsgPack (= 2026.11.28.1)
- Microsoft.AspNetCore.SignalR.Common (>= 8.0.34)
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 |
|---|---|---|
| 2026.11.28.1 | 42 | 11/28/2026 |
| 2026.11.24.1 | 87 | 11/24/2026 |
| 2026.11.23.1 | 93 | 11/23/2026 |
| 2026.11.21.1 | 100 | 11/21/2026 |
| 2026.11.20.1 | 152 | 11/20/2026 |