Constructor that creates a web collaboration server.
A custom MemberStateService.
If not provided, a default MemberStateService
implementation will be used.
A custom MessageQueue.
If not provided, a default MessageQueue
based on Redis will be used.
The Redis URL should be provided as an environment variable when starting the collaboration server,
like REDIS_URL="redis://127.0.0.1:6379"
.
An identifier for the server which should be unique in the same cluster.
The config of the database.
An optional logger configuration.
If not provided, the default configuration will be used. Which is equivalent to:
{
level: 'info',
autoLogging: false,
}
Internally, pino and pino-http are used. Your can pass pino-http options directly, and it will be passed to pino-http.
An optional messageHandler
A UserService implementation.
Create collaboration.
The document name of the collaboration.
The URL of the PDF file to enable collaboration.
The owner of the document.
Start the collaboration server.
The port the server will listen on, 8080 by default.
Stop the collaboration server.
Generated using TypeDoc
WebCollabServer is the Web collaboration server component. It supports both simple mode (non-clustering) and cluster mode. The simple mode is used by default. To enable the clustering,MemberStateService and MessageQueue should be declared.