Skip to main content

Function: decodeCortexRoomFrame()

function decodeCortexRoomFrame(bytes): CortexRoomFrame | null

Decode a room message into a Cortex frame.

Parameters​

ParameterTypeDescription
bytesUint8ArrayThe raw MessageReceived payload

Returns​

CortexRoomFrame | null

The frame, or null when the bytes are not a Cortex frame of a version this decoder understands — treat those as application data.

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/room-protocol.ts:107