Skip to main content

Events overview

Every vault has an event stream. Your server emits events using vault.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.