WS /ws/events
General-purpose event subscription channel. Subscribe to specific event types and receive broadcasts when they occur.
Connection Example
wscat -c "wss://api.grails.app/ws/events"On connect, the server sends:
{ "type": "connected", "clientId": "req-1", "timestamp": "2026-04-08T00:00:00.000Z" }Client Messages
| Message Type | Fields | Description |
|---|---|---|
subscribe | event: string | Subscribe to an event type |
unsubscribe | event: string | Unsubscribe from an event type |
ping | — | Keepalive ping |
Server Messages
| Message Type | Description |
|---|---|
connected | Connection established |
subscribed | Subscription confirmed |
unsubscribed | Unsubscription confirmed |
event | Event broadcast (includes event, data, timestamp) |
broadcast | Global broadcast to all clients |
pong | Keepalive response |
error | Error message |
Last updated on