Skip to main content
The SDK bridges two directions: outbound gameplay events you submit, and inbound realtime events (session, wallet, status) the SDK polls for you.

Submit an event

Browser:
Outbound events are:
  • validated — protocol value limits apply (string ≤ 8192 chars, array ≤ 1024 items, object ≤ 128 properties, payload ≤ 64 KB, nesting ≤ 10 levels, extensions ≤ 16);
  • buffered offlineoffline_buffering (default on) queues events while disconnected and flushes them later;
  • flushed in batchesbatch_size (25) and flush_interval_ms (1000).

Receive realtime events

Native:
Browser (event listeners):

Event types

The SDK dispatches inbound events to registered handlers; in Manual runtime mode a tick call is what drives dispatch and polling (see Initialization & lifecycle).

The event plane

The event plane is a WebSocket-based channel. The SDK:
  • maintains the connection with resume-from-cursor support (diagnose with musterbox web-socket resume-simulate),
  • polls with backpressure-aware batching,
  • exposes pipeline and storage diagnostics through the CLI.

Backpressure

The outbound queue is bounded (event_queue_capacity, default 1000). Filling it triggers explicit backpressure signalling rather than unbounded memory growth. Monitor pipeline pressure via musterbox pipeline status. Next: Status & lifecycle.
Last modified on September 10, 2026