A connection string (starting with ys://
or yss://
) referring to a y-sweet server.
Optional
docId: stringThe ID of the document to create. If not provided, a random ID will be generated.
A DocCreationResult object containing the ID of the created document.
A convenience wrapper around DocumentManager.createDoc for creating a new document. If a document with the given ID already exists, this is a no-op.