SessionService
The SessionService allows opening and closing sessions. Opening a session is mandatory before interacting with any service.
Accessors
participant
• get participant(): Participant
Provides the local participant object that belongs to the current session.
Returns: Participant
Methods
close
▸ close(): Promise<void>
Closes the current session.
Returns: Promise<void>
isOpen
▸ isOpen(): boolean
Checks whether there is an open session that connects SDK with backend.
Returns: boolean
open
▸ open(info?
: ParticipantInfo): Promise<void>
Opens a new session.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
info | ParticipantInfo | {} | The optional information about the local participant. |
Returns: Promise<void>
Updated about 1 year ago