I was trying to setup websocket server for yjs using this code:
y-js/y-websockets-server: Websocket connector for Yjs (Node server)
However, I noticed:
- when I try to connect to the server from yjs/y-websocket provider, the connection fails because there’s a document name appended to the end of the server name e.g. wss://server.com/doc_name_here. It looks like the server-side code is outdated, because the same client can connect to the test instance: wss://demos.yjs.dev and wss://demos.yjs.dev/doc_name_here works
- The y-websockets-server was last updated on April 7, 2018 ~ 3 years ago.
I wonder if there’s updated version somewhere. I started migrating the server to socket.io@3.1.1, but ran into further protocol issues.
Edit! Just found this folder: yjs/y-websocket/blob/master/bin/server.js!!! I spent the last several hours looking at outdated code…
Posting this here to hopefully save someone else the time that I spent.