Push Events

Receive Sonoran CAD push events over the websocket API.

The websocket API can receive Sonoran CAD push events without exposing a local HTTP listener.

How It Works

When your websocket client authenticates with a valid serverId, Sonoran CAD checks for an active websocket session for that exact community/server pair before sending a traditional push event HTTP POST.

If a matching websocket session exists:

  • The push event is sent over the websocket connection.

  • The legacy HTTP push event fallback is skipped.

If no matching websocket session exists:

  • Sonoran CAD falls back to the existing HTTP push event delivery flow for that server IP/port.

Requirements

  • Authenticate over /apiWsHub

  • Pass your communityId

  • Pass your Sonoran CAD apiKey

  • Pass the target serverId you want to receive push events for

Incoming Event Name

Your websocket client should listen for:

Payload Format

The pushEvent payload is the same JSON payload previously sent to local push event listeners over HTTP.

Example:

This means your existing push event parsing logic can usually be reused with minimal changes.

Node.js Example

Notes

  • Push event delivery over websocket is scoped to the authenticated serverId.

  • If you operate multiple servers, create one websocket session per target serverId.

  • Unit location updates continue to use the unitLocation websocket method separately from inbound pushEvent messages.

Last updated

Was this helpful?