Via SDK
Open the stream and iterate over the envelopes:event.category and event.type in your loop. If the stream drops, re-open it with the last seq you processed as last_event_id to resume without gaps.
Via CLI
Stream events to your terminal. The command runs until the session ends or you interrupt it:Filtering by category or event type
Resuming after a disconnect
The stream is a single connection; it does not reconnect on its own. Each event carries a monotonicseq, so to resume without gaps you re-open the stream and pass the last seq you processed.