Skip to main content

odin_room_send_loopback_rpc

enum OdinError odin_room_send_loopback_rpc(struct OdinRoom *room,
const uint8_t *bytes,
uint32_t bytes_length);

Overview

Sends a MessagePack encoded RPC message using a local loopback mechanism. It bypasses the normal network transmission by directly invoking the RPC callback configured in the connection pool settings.

It is useful for emitting synthetic events for testing and internal processing without involving the network layer.

Parameters

NameTypeDescription
roomstruct OdinRoom *The room handle.
bytesconst uint8_t *The MessagePack encoded payload.
bytes_lengthuint32_tThe length of the payload.

Return Value

TypeDescription
OdinErrorODIN_ERROR_SUCCESS on success.