Hmm. Last time I tried yjs it wasn't suitable for production. Ok for a quick demo only. Buy that was a few years ago so presumably those issues have been resolved.
Docmost uses Hocuspocus (by Tiptap) as the websocket backend for Yjs (https://tiptap.dev/docs/hocuspocus/introduction).