jacob-ebey / turbo-stream

A streaming data transport format that aims to support built-in features such as Promises, Dates, RegExps, Maps, Sets and more.
https://turbo-stream.pages.dev/
MIT License
196 stars 6 forks source link

[Feature Request] Support encoding binary data types #37

Open dest1n1s opened 3 months ago

dest1n1s commented 3 months ago

Data-centric applications (maybe AI-related) will likely take advantage of binary data to transfer large statistical results. Most common serializers, like MessagePack and Protocal Buffer, support serializing such binary data.

It would be nice for turbo-stream to also support serializing JavaScript-native binary data types, such as Uint8Array.

jacob-ebey commented 2 months ago

You can easily add a plugin to do so. Does that not suffice?