Skip to content

Home > @world-wide-lab/client > Client > createSession

Client.createSession() method ​

Start a new Session. If a participant's id is stored, it will be used. see getParticipant().

Signature:

typescript
createSession(sessionOptions: ClientSessionOptions): Promise<Session>;

Parameters ​

Parameter

Type

Description

sessionOptions

ClientSessionOptions

Options to create the session with

**Returns:**

Promise<Session>

A new Session instance