Joinroomopts

JoinRoomOpts interface

Signature:

export interface JoinRoomOpts 

Properties

Property

Modifiers

Type

Description

disableSnapshots?

boolean

(Optional) Disable snapshots for the room, default is true, disable only if you don't want to sync the players' states

host

string

The host of the game server, this can be the local dev server or the production server

multiRoom?

boolean

(Optional) Multi-room mode, default is false

remotePlayerOpts?

PlayerAvatarOpts

(Optional) Options for remote players

roomId?

string

(Optional) Usually the roomId is managed by the application (e.g. from invite links). USE THIS ONLY IF YOU WANT TO JOIN A ROOM OTHER THAN THE ONE MANAGED BY THE APPLICATION