@univerjs-pro/collaboration-client v0.5.0-beta.1 • Docs
Class: CollaborationSessionService
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,
_localeService,
_messageService,
_logService,
_configService,
_socketService,
_httpService): CollaborationSessionService
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_localeService | LocaleService |
_messageService | IMessageService |
_logService | ILogService |
_configService | IConfigService |
_socketService | ICollaborationSocketService |
_httpService | HTTPService |
Returns
Overrides
Defined in
packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:51
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
socket$ | readonly | Observable <Nullable <ICollaborationSocket >> | undefined | - | packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:34 |
status$ | public | Observable <SessionStatus > | undefined | - | packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:44 |
Methods
closeSession()
closeSession(unitID): void
Parameters
Parameter | Type |
---|---|
unitID | string |
Returns
void
Defined in
packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:96
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:70
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
reconnect()
reconnect(): void
Returns
void
Defined in
packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:108
requireSession()
requireSession(unitID): Promise<CollaborationSession>
Require a collaboration session.
Parameters
Parameter | Type |
---|---|
unitID | string |
Returns
Promise
<CollaborationSession
>
a collaboration session.
Defined in
packages/collaboration-client/src/services/collaboration-session/collaboration-session.service.ts:83