Events overview
Every vault has an event stream. Your server emits events usingvault.emit() as work progresses, and clients subscribe to the stream using Server-Sent Events (SSE). Events are fired in real time — no polling required.
How vault events work
Clients subscribe directly to Prudra’s SSE endpoint — your server doesn’t need to manage WebSocket connections or streaming infrastructure.Quick example
Event types
Sub-pages
Emit events
Emit custom events from your server handler.
Subscribe via SSE
Subscribe to the event stream from a client.
Event reference
System event payloads and custom event format.
Related
- Vaults overview — vault lifecycle
- Seal a vault — closes the SSE stream
- Access control — issue tokens for client subscription

