Event journal
eventsBackfill event history from the session journal, then long-poll for new events. Returns cursor-based pages with drop notifications so you can recover gaps.
Instructions
Backfill from the bridge's event journal (ring of 10,000 per session). Returns events with seq > since, oldest first → {cursor, events[], dropped, truncated, latest_seq, hub_dropped}. cursor is the seq of the last event actually returned: pass it as the next since. truncated means more events wait after cursor; dropped > 0 means the ring evicted events you never saw. kinds filters by event type: log, error, assert, milestone, custom, playtest, peer, selection, job, controller, change (default all); levels filters log events (print|info|warn|error). timeout_ms > 0 long-polls: returns as soon as a matching event arrives, or empty when the timeout (≤ 50000) elapses. This is the portable fallback to push. Prefer Monitor on ws://127.0.0.1:/events: batched frames ≤ 4 KB carrying seq and dropped; default kinds error, assert, milestone, custom, playtest, peer, controller, job plus warn/error logs (?kinds=…&levels=… per socket). After any dropped > 0 or seq gap on the socket, call events with since = the last seq you saw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Event types to include (default all) | |
| limit | No | Max events (default 500) | |
| since | No | Return events with seq > since (default 0) | |
| levels | No | log levels to include: print|info|warn|error (default all) | |
| session | No | Studio session GUID or unique prefix (default: the active hub; required for writes when several Studios are connected) | |
| timeout_ms | No | Long-poll up to this long for a matching event (default 0 = return now) |