Skip to main content

Emit events

Your server calls vault.emit() to push events to subscribed clients in real time. Events can carry any JSON payload.

Emitting via vaultMiddleware

Emitting via API

Parameters

Event naming conventions

Use dot-notation event types for clarity:
Avoid spaces and special characters. Maximum type length is 128 characters.

Error handling