Feature request
Support sending and receiving typed arrays (such as UInt8Array) in custom messages
Use case
I'n using custom messages to read files from the client. Here's an example RequestType:
RequestType<{ uri: string }, UInt8Array, any>
Currently when the client returns a new UInt8Array([1, 2, 3]), the server receives a json object with array index keys:

This then has to be converted back into a UInt8Array. For larger payloads, this conversion is time consuming and the expansion of the UInt8Array also means a lot more data ends up needing to be transmitted between the client and server
Feature request
Support sending and receiving typed arrays (such as
UInt8Array) in custom messagesUse case
I'n using custom messages to read files from the client. Here's an example
RequestType:Currently when the client returns a
new UInt8Array([1, 2, 3]), the server receives a json object with array index keys:This then has to be converted back into a
UInt8Array. For larger payloads, this conversion is time consuming and the expansion of theUInt8Arrayalso means a lot more data ends up needing to be transmitted between the client and server