SessionService

The SessionService allows opening and closing sessions. Opening a session is mandatory before interacting with any service.

Methods

close

close(): Promise<void>

Closes the current session.

Returns

Promise<void>


getParticipant

getParticipant(): Promise<Participant>

Provides the local participant object that belongs to the current session.

Returns

Promise<Participant>


isOpen

isOpen(): Promise<Boolean>

Returns if a session that connects the SDK with the Dolby.io platform is opened or not.

Returns

Promise<Boolean>


open

open(participantInfo?): Promise<void>

Opens a new session.

Parameters

NameTypeDescription
participantInfoParticipantInfoThe optional information about the local participant.

Returns

Promise<void>


Did this page help you?