Constructor
new ConnectionManager(worldManager)
Parameters:
Name | Type | Description |
---|---|---|
worldManager |
WorldManager |
- Source:
Classes
Methods
configureSession()
Set up session based on properties and current state.
Called after connection is established, and before enter/start session.
- Source:
(async) enter(properties) → {Promise.<Welcome>}
Enter the world specified by world.name. If not already connected,
first connect to world.serverUrl and set own properties, then start the session.
World and WorldListeners are notified by calling entered methods.
Parameters:
Name | Type | Description |
---|---|---|
properties |
Object | own properties to set before starting the session |
- Source:
Returns:
promise resolved after enter
- Type
- Promise.<Welcome>
entered()
Called after user enters a world, calls world and world listener entered() methods wrapped in try/catch
- Source:
(async) pubSub(user, autoPublishVideo)
Publish and subscribe
Parameters:
Name | Type | Description |
---|---|---|
user |
Client | Client object of the local user |
autoPublishVideo |
boolean | should webcam video be published as soon as possible |
- Source: