Thanks for your reply,
I am trying to ask about using the ydoc on the client side with a websocket as the communication.
This way server memory can be be freed and conflict are resolved on the clients, similar to y-webrtc but using websocket for communication
below is probably a better solution: