Our new developer documentation is now available. Please check it out!
OdinRoom.join
On this page
join(userData?: Uint8Array, position?: any): Promise<OdinPeer>
Joins the room and returns your own peer instance after the room was successfully joined.
Parameters
Name | Type | Description |
---|---|---|
userData | Uint8Array | Optional user data to set for the peer when connecting |
position | any | Optional coordinates to set the three-dimensional position of the peer in the room when connecting |
Returns
Type | Description |
---|---|
Promise<OdinPeer> |