odin_room_create
Overview
Creates a new ODIN room with default parameters. This basic variant requires only the connection pool, the address of an ODIN gateway/server and a JSON Web Token (JWT) for user authentication.
On success, it returns the created room handle and immediately triggers asynchronous connection establishment, allowing the local peer to join the room.
NOTE: For advanced configuration (room name, user data, scaling, encryption), see odin_room_create_ex.
Parameters
| Name | Type | Description |
|---|---|---|
connection_pool | struct OdinConnectionPool * | The connection pool manage the underlying connection. |
uri | const char * | The URL of the ODIN gateway or server. |
token | const char * | A valid signed JWT token. |
out_room | struct OdinRoom ** | Pointer to receive the handle of the newly created room. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |