Closed lijie1129 closed 2 years ago
My scenario: create a document locally, input some content, and then establish a connection through y-websocket to upload it to the server.
The question is: when to close this connection(wsProvider)?
I currently use setTimeout to destroy the wsProvider after 5 seconds. But I don't think it's elegant.
Huly®: YJS-523
Please, questions go to discuss.yjs.dev
My scenario: create a document locally, input some content, and then establish a connection through y-websocket to upload it to the server.
The question is: when to close this connection(wsProvider)?
I currently use setTimeout to destroy the wsProvider after 5 seconds. But I don't think it's elegant.
Huly®: YJS-523