Skip to content
impulseDOCS
Get Started

Realtime — ImpulseRealtime

ImpulseRealtime provides publish/subscribe channels over standard WebSockets, with presence, message history, and token-based connection auth that pairs cleanly with ImpulseAuth.

Clients authenticate with short-lived connection tokens minted by your backend:

// Browser
const ws = new WebSocket(`wss://realtime.my-app.impulse/connection/websocket?token=${token}`);

Your server mints connection tokens using the project’s realtime secret (Connect tab) — sign a JWT with the user’s ID and channel claims, hand it to the client, and the connection inherits those permissions.

  • Live dashboards — publish metric events from workers; every open dashboard updates.
  • Presence — see who’s online in a channel.
  • History — late joiners catch up on recent messages.