Zaid-Ajaj / Fable.Remoting

Type-safe communication layer (RPC-style) for F# featuring Fable and .NET Apps
https://zaid-ajaj.github.io/Fable.Remoting/
MIT License
272 stars 55 forks source link

(feature request) withBinarySerialization for the request? #297

Open AkosLukacs opened 2 years ago

AkosLukacs commented 2 years ago

Hi,

Currently withBinarySerialization sets the server's response serialization to MsgPack, but the request from the client is still in JSON. Would it possible to switch the client -> server request to messagepack as well? Or is anything blocking this?

kerams commented 2 years ago

This is something I was looking into in the past. I don't recall there being any blockers, but JSON serialization is baked in the request side of things a little deeper and I just didn't feel like putting in the effort into it, since the benefits would be much smaller than for binary response serialization.