Client
Client that can communicate with the server. It has Documents and sends changes of the documents in local to the server to synchronize with other replicas in remote.
A single-threaded, Closeable is used as default. Therefore you need to close the client, when the client is no longer needed. If you provide your own dispatcher, it is up to you to decide close is needed or not.
Constructors
Types
Represents the result of synchronizing the document with the server.
Represents the type of the events that the client can emit. It can be delivered by Client.events.
Represents whether the stream connection between the client and the server is connected or not.
SyncMode defines synchronization modes for the PushPullChanges API.
Functions
Activates this Client. That is, it registers itself to the server and receives a unique ID from the server. The given ID is used to distinguish different clients.
Changes the sync mode of the document.
Deactivates this Client.
Removes the given document.