YousefED / SyncedStore

SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.
https://syncedstore.org
MIT License
1.71k stars 51 forks source link

Support binary data #74

Closed csbenjamin closed 1 year ago

csbenjamin commented 1 year ago

I have been using yjs for some time now. And I usually store binary data in my yjs documents using Uint8Array objects. I wonder if you could add the option to store Uint8Array objects without using the boxed function.

csbenjamin commented 1 year ago

I actually thought I could use boxed to store Uint8Array, but apparently I can't.

YousefED commented 1 year ago

I actually thought I could use boxed to store Uint8Array, but apparently I can't.

Hi @csbenjamin ,

Thanks for reporting. This is actually possible, a test has been added here: https://github.com/YousefED/SyncedStore/pull/82

Hope this works for you!

YousefED commented 1 year ago

My bad, it was a bug indeed, fixed in https://github.com/YousefED/SyncedStore/pull/83