Questions tagged [y-websocket]

2 questions
0
votes
0 answers

what should I do to found out the nodejs socket hang up reason

I have a node server modified by the y-websocket https://github.com/yjs/y-websocket to recieve websocket connection, after running some times, the server will stop the connection from client and throw this error: running at '0.0.0.0' on port…
Dolphin
  • 29,069
  • 61
  • 260
  • 539
0
votes
1 answer

how to get the doc text in y-websocket server side

I want to flush the yjs document into disk in y-websocket server side, this is how I do it: const handleFileSync = async (docName, ydoc) => { try { let fileContent = await getFileJsonData(docName) if (!fileContent) { …
Dolphin
  • 29,069
  • 61
  • 260
  • 539