Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Server experience: messaging

cinnabar:server-experience/messaging@1.5.0

The host validates each record against its signed channel schema.

Grants: The signed client bundle’s messaging permission and declared channel schema.

Types

Functions

send

send: func(channel: string, schema: u16, record-json: list<u8>) -> result<_, string>;

Sends a typed record only on a signed channel and schema authorized for this bundle.

negotiate

negotiate: func(confirmation-channel: string, request-channel: string, schema: u16, fingerprint: string);

During init, sends the registry request and defers callbacks until a successful dispatch on confirmation-channel. The SDK validates its fingerprint and runs authored init there. The caller then dispatches latest state before ordered events. Queue overflow stops the part.