Connect Room
Initiates the connection to an ODIN server. This function sends the join request. Use the 'On Room Joined' event to react to a successful connection.
Inputs
| Name | Type | Description |
|---|---|---|
| Gateway | string | The Gateway URL (e.g. 'https://gateway.odin.4players.io'). |
| Authentication | string | The authentication token (JWT) or signed JSON payload. Generate this using Generate Room Token. |
| Crypto | object | Optional: End-to-end encryption configuration. |
Outputs
| Name | Type | Description |
|---|---|---|
| Return Value | object | The room object. |
| Success | boolean | True if the connection request was sent successfully. |