rpc-websockets icon indicating copy to clipboard operation
rpc-websockets copied to clipboard

Sending ArrayBuffer is very awkward

Open pentacular opened this issue 1 year ago • 0 comments

I can't find a good way to send ArrayBuffer data.

The only solution I've found that works is to convert to text and wrap in an object.

Ideally we would be able to send the ArrayBuffer directly, and have DataPack handle this.

But this is complicated as the rpc-websockets protocol is also using DataPack so changes here can break communication.

How about separating DataPack for rpc-websockets protocol from client data packing?

And allowing per-registered method options for DataPack?

pentacular avatar Apr 17 '24 03:04 pentacular