Cysharp / MemoryPack

Zero encoding extreme performance binary serializer for C# and Unity.
MIT License
3.01k stars 182 forks source link

Support for signalR #287

Closed kaizendevsio closed 2 months ago

kaizendevsio commented 2 months ago

Hi guys first thanks for another awesome library!

We just like to know if there will be a signalR support just like message pack?

neuecc commented 2 months ago

SignalR's MessagePack is tightly coupled with the protocol and implementation, not just the serialization of the Body. Therefore, it would be difficult to use anything other than the official implementation (JSON, MessagePack).

kaizendevsio commented 2 months ago

@neuecc Thanks! so would it be better to say that I should raise this instead to aspnet team?

neuecc commented 2 months ago

It would likely be wasteful to ask for ASP.NET to support MemoryPack. However, I agree with the proposal of allowing customization of the serializer for the body in the Binary Protocol (based on MessagePack). This would enable fulfilling requests such as using protobuf for the body serialization.