OdinRoom.join
On this page
join(gatewayUrl: string, userData?: Uint8Array): void
Joins the room with the given gateway URL and optional user data.
Parameters
Name | Type | Description |
---|---|---|
gatewayUrl | string | The gateway URL to connect to. Use gateway.odin.4players.io if you are unsure. |
userData | Uint8Array | The user data to send to the room. This can be used to identify the user. |
Returns
Type | Description |
---|---|
void |