yjs / y-websocket

Websocket Connector for Yjs
https://docs.yjs.dev/ecosystem/connection-provider/y-websocket
MIT License
492 stars 255 forks source link

Can other types of data be transmitted #152

Closed pingfangxiaogege closed 11 months ago

pingfangxiaogege commented 11 months ago

image

As far as I know, the binaryType of ws is set to arraybuffer by default, and the transmitted data format is binary data stream. However, it currently does not meet my needs. How can I modify it to transfer object data

Huly®: YJS-546

dmonad commented 11 months ago

That's out of scope of this project. y-websocket doesn't provide a custom communication channel that you can use. However, feel free to fork and modify y-websocket to work on JSON objects if that is really what you need.