@univerjs-pro/collaboration-client v0.5.4


index

Enumerations

EnumerationDescription
CollaborationStatus-
CollaborationUIEventId-
SessionStatus-
UnitStatus-

Classes

ClassDescription
AuthzIoHttpService-
AwaitingStateAll local mutations are sent to the server and waiting for acknowledgement.
AwaitingWithPendingStateSome local mutations are sent to the server and waiting for acknowledgement, yet still some local mutations are waiting to be sent to the server.
CollaborationController-
CollaborationEntityEach univer document instance would map to an CollaborationEntity to handle collaborated editing events.
CollaborationImageIoService-
CollaborationSessionThe data structure to represent a collaboration session. It also manages the collaborator’s identity.
CollaborationSessionServiceThis service provide collaboration sessions to univer instances. A collaboration session may be used by different controllers of different features.
CollaborationSocketServiceThis service provides a socket that can be used to communicate with the remote collaboration server.
CollaborationUIEventService-
CollaborativeUndoRedoServiceThis UndoRedoService is local.
CommentService-
ConflictStateThis state is special for handling collaboration conflicts.
DataLoaderServiceThis service provides a way to load data from the server and initialize the Univer instance.
DocCollaborationEntityEach univer document instance would map to an CollaborationEntity to handle collaborated editing events.
FetchingMissStateWhen the client is trying to fetch missed changesets:
MemberServiceThis services manages members is each rooms.
MentionIoHttpService-
OfflineState-
PendingStateSome local changes are waiting to be sent to the server. But no changesets are waiting for acknowledgement.
SheetCollaborationEntityEach univer document instance would map to an CollaborationEntity to handle collaborated editing events.
SheetTransformSelectionsService-
SnapshotServerOverHTTPService-
SyncedStateAll local changesets are sent to and acknowledged by the server.
UniverCollaborationClientPluginPlug-in base class, all plug-ins must inherit from this base class. Provide basic methods.

Interfaces

InterfaceDescription
ICollaborationSocket-
ICollaborationSocketServiceThis service provides a socket that can be used to communicate with the remote collaboration server.
IDocCollaborationEntityCallback-
ILocalCacheService-
INetworkConditionService-
ISingleActiveUnitService-
IUnitCacheData-
IUniverCollaborationClientConfig-

Variables

VariableDescription
AUTHZ_URL_KEY-
COLLAB_SUBMIT_CHANGESET_URL_KEY-
COLLAB_WEB_SOCKET_URL_KEY-
COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY-
DEFAULT_COLLAB_WEB_SOCKET_URL-
DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT-
HEARTBEAT_INTERVAL_KEYThe heartbeat interval in milliseconds.
HEARTBEAT_TIMEOUT_KEY-
LOCAL_CACHE_INTERVAL-
LOCAL_CACHE_INTERVAL_KEYA config key to determine how often should Univer save local edits.
LOGIN_URL_KEYThe config key to determine the URL provided by the auth server
REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEYThe config key to determine the URL of the Uniscript execution endpoint.
RETRY_CONNECTING_MAX_COUNT_KEY-
SEND_CHANGESET_TIMEOUT_KEY-
SNAPSHOT_SERVER_URL_KEY-

Functions

FunctionDescription
deserializeToCombResponse-
getLocalCacheKey-
ICollaborationSocketService-
ILocalCacheService-
INetworkConditionService-
ISingleActiveUnitServiceIt is not recommended to open multiple units in different browser tabs at the same time, especially when the there is not access to the internet. There is a great chance of loosing offline data! So we should make there is only one active unit at a time.
serializeCombRequest-