ASP.NET Core SignalR supports two protocols for encoding messages: JSON and MessagePack. Try this: https://learn.microsoft.com/en-us/aspnet/core/signalr/messagepackhubprotocol
ASP.NET Core SignalR custom serialization
b_ioan
61
Reputation points
Hello everybody!
I am working on a project that involves the use of SignalR technology in an application based on ASP.NET Core 6.0
I want to transmit data between client and server and vice versa using a custom serializer, and not using the default JSON option.
Is this scenario possible and what are the necessary steps that must be taken?
Any idea is welcome!
Accepted answer
1 additional answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 66,706 Reputation points
2022-11-17T16:37:41.433+00:00 Signal/r uses json for the message payload. You can not change this. But you can serialize to string that you pass via json.