Documentation Index
Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt
Use this file to discover all available pages before exploring further.
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
| Type | When fired | Fired by |
|---|---|---|
| Custom (any string) | When your server calls vault.emit() | Your server |
vault.sealed | When vault.seal() is called | Prudra |
vault.expiring | 1 hour before TTL expires | Prudra |
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

