Skip to content

Support other Serializers for SignalR Protocol so we can support Trimming/AOT #60061

Discussion options

You must be logged in to vote

There is an interface, IHubProtocol. Just add it to the service provider and configure your client(s) to use that protocol as well. e.g. https://source.dot.net/#Microsoft.AspNetCore.SignalR.Protocols.Json/JsonProtocolDependencyInjectionExtensions.cs,38

I would recommend not using MemoryPack though, it is not a safe serializer.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SerratedSharp
Comment options

Answer selected by SerratedSharp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants