@univerjs-pro/collaboration-client v0.5.4
Class: CollaborationSession
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:37
The data structure to represent a collaboration session. It also manages the collaborator’s identity.
An collaboration session maps to a unit.
Extends
Implements
Constructors
new CollaborationSession()
new CollaborationSession(
_unitID,
socket$,
_logService,
_configService,
_localeService,
_memberService,
_commentService,
_collaborationUIEventService,
_telemetryService?): CollaborationSession
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:51
Parameters
Parameter | Type |
---|---|
_unitID | string |
socket$ | Observable <Nullable <ICollaborationSocket >> |
_logService | ILogService |
_configService | IConfigService |
_localeService | LocaleService |
_memberService | MemberService |
_commentService | CommentService |
_collaborationUIEventService | CollaborationUIEventService |
_telemetryService ? | ITelemetryService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:120 |
event$ | readonly | Observable <ICollaborationEvent > | undefined | - | packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:45 |
sessionStatus$ | readonly | Observable <SessionStatus > | undefined | - | packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:39 |
Accessors
sessionStatus
Get Signature
get sessionStatus(): SessionStatus
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:40
Returns
Methods
close()
close(): void
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:111
Returns
void
dispose()
dispose(): void
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:105
Returns
void
Implementation of
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
RxDisposable
.ensureNotDisposed
getMemberID()
getMemberID(): null | string
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:101
Returns
null
| string
send()
send(event, unitID): Promise<void>
Defined in: packages/collaboration-client/src/services/collaboration-session/collaboration-session.ts:213
Send event to the collaboration server.
Parameters
Parameter | Type |
---|---|
event | ICollaborationEvent |
unitID | string |
Returns
Promise
<void
>