A connection string (starting with ys://
or yss://
) referring to a y-sweet server.
Optional
docId: stringThe ID of the document to get or create. If not provided, a new document with a random ID will be created.
Optional
authDocRequest: AuthDocRequestAn optional AuthDocRequest providing options for the token request.
A ClientToken object containing the URL and token needed to connect to the document.
A convenience wrapper around DocumentManager.getOrCreateDocAndToken for getting or creating a document with the given ID and returning a client token for accessing it.