Skip to Content

WS /ws/orders

Order-specific WebSocket channel for real-time order status updates.

Connection Example

wscat -c "wss://api.grails.app/ws/orders"

On connect, the server sends:

{ "type": "connected", "channel": "orders", "clientId": "req-1", "timestamp": "2026-04-08T00:00:00.000Z" }

Client Messages

Message TypeFieldsDescription
subscribeorderId: stringSubscribe to updates for a specific order

Server Messages

Message TypeDescription
connectedConnection established (includes channel, clientId)
subscribedSubscription confirmed (includes orderId)
errorError message
Last updated on