OdinRoom.join

join(gatewayUrl: string, userData?: Uint8Array): void

Joins the room with the given gateway URL and optional user data.

Parameters

NameTypeDescription
gatewayUrlstringThe gateway URL to connect to. Use gateway.odin.4players.io if you are unsure.
userDataUint8ArrayThe user data to send to the room. This can be used to identify the user.

Returns

TypeDescription
void