Realtime — ImpulseRealtime
ImpulseRealtime provides publish/subscribe channels over standard WebSockets, with presence, message history, and token-based connection auth that pairs cleanly with ImpulseAuth.
Connect
Section titled “Connect”Clients authenticate with short-lived connection tokens minted by your backend:
// Browserconst 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.
Patterns
Section titled “Patterns”- 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.