NEWDolby Interactivity APIs are now the Dolby.io Communications APIs Learn More >
X

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:

NameTypeDefault valueDescription
infoParticipantInfo{}The optional information about the local participant.

Returns: Promise<void>


Did this page help you?