y-socket.io icon indicating copy to clipboard operation
y-socket.io copied to clipboard

Is there a way to create a document on the server via API instead of through a socket call?

Open vincesp opened this issue 1 year ago • 2 comments

There are use cases where the server is the master of the documents. Is there a better way to have documents created by the server than opening a socket to self, i.e., running a client on the server?

y-websocket has getYDoc() to create new documents on the server.

Couldn't y-socket.io somehow export initDocument() as well?

vincesp avatar Jan 04 '23 10:01 vincesp