@univerjs-pro/collaboration-client v0.5.4


Class: CollaborationSessionService

Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:28

This service provide collaboration sessions to univer instances. A collaboration session may be used by different controllers of different features.

Extends

Constructors

new CollaborationSessionService()

new CollaborationSessionService(
   _injector, 
   _logService, 
   _configService, 
   _socketService, 
   _httpService, 
   _collaborationUIEventService, 
   _networkConditionService?): CollaborationSessionService

Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:50

Parameters

ParameterType
_injectorInjector
_logServiceILogService
_configServiceIConfigService
_socketServiceICollaborationSocketService
_httpServiceHTTPService
_collaborationUIEventServiceCollaborationUIEventService
_networkConditionService?INetworkConditionService

Returns

CollaborationSessionService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
socket$readonlyObservable<Nullable<ICollaborationSocket>>undefined-packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:33
status$publicObservable<SessionStatus>undefined-packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:43

Methods

closeSession()

closeSession(unitID): void

Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:104

Parameters

ParameterType
unitIDstring

Returns

void


dispose()

dispose(): void

Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:78

Returns

void

Overrides

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


reconnect()

reconnect(): void

Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:116

Returns

void


requireSession()

requireSession(unitID): Promise<CollaborationSession>

Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:91

Require a collaboration session.

Parameters

ParameterType
unitIDstring

Returns

Promise<CollaborationSession>

a collaboration session.