Skip to main content

Websocket Authentication

Authentication Method

Method:

Parameters:

Response

serverId

serverId is optional for websocket authentication. Use it when you want this websocket connection to receive Sonoran CAD push events for a specific configured server. If provided, the serverId must match a valid server configured in your CAD. If serverId is omitted, the websocket session can still call websocket API methods such as unitLocation, but it will not be used as a push event destination for a specific server.

Auth JS example (Node.js) Requires:

Add the Microsoft SignalR Library