Configuration options for the handler
An instance of EventManager, which you can use to subscribe to certain events
An instance of ScrollSyncManager, which you can use to subscribe to manage scroll sync sessions
Set the custom headers to be sent with requests to the server. Should not be used unless you are using a custom server.
Calling this function completely overrides any previously set custom headers.
Returns the currently signed in user, if it exists
Logs in a user with an authentication token. Returns a user entity if the token is valid. Returns null if token is invalid or any other errors occur
The token to validate on the server
Logs in a user with an email and password
Returns a user
entity if the password is valid.
Returns null if token is invalid or any other errors occur
The email to send to the server
The password to send to the server
Logs in a user anonymously. The user's info will be cached and restored if they reload the page and 'loginAnonymously' is called again.
The display name to use for the user. Defaults to 'Guest'
Sets the WebViewer instance. Should only be used if instance
is not passed to the constructor
The WebViewer instance
Sets context about the current user for use on the server. This function overwrites the entire context.
The custom data to set
Returns the full context set on the server
Updates the context about the current user for use on the server. Data passed into this function is merged with any existing data
The custom data to set
Returns the full context set on the server
Deletes any custom context set on the server
Destroys the Collaboration client.
Generated using TypeDoc
A default function that handles browser notifications. This function asks the user permission to send notifications, and triggers notifications whenever a user receives a new message or invite.
This function is available as a static on CollabClient