Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinRoom.join

public join(gatewayOrServerUrl: string, userData?: Uint8Array): void

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

Parameters

NameTypeDescription
gatewayOrServerUrlstring
userDataUint8ArrayThe user data to send to the room. This can be used to identify the user.

Returns

TypeDescription
void