Skip to main content

odin_room_create

enum OdinError odin_room_create(struct OdinConnectionPool *connection_pool,
const char *uri,
const char *token,
struct OdinRoom **out_room);

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

NameTypeDescription
connection_poolstruct OdinConnectionPool *The connection pool manage the underlying connection.
uriconst char *The URL of the ODIN gateway or server.
tokenconst char *A valid signed JWT token.
out_roomstruct OdinRoom **Pointer to receive the handle of the newly created room.

Return Value

TypeDescription
OdinErrorODIN_ERROR_SUCCESS on success.