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!

A set of technologies in the .NET Framework for building web applications and XML web services.
3,145 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Bruce ( 36,026 Reputation points

    Signal/r uses json for the message payload. You can not change this. But you can serialize to string that you pass via json.

    0 comments No comments