Skip to main content
The Web Socket Send command (Command Type: 3) sends a message over an established WebSocket connection.

Command Type

Command Type ID: 3

Parameters

ParameterTypeDescriptionRequired
sendMessagestringThe message to send over the WebSocket connectionYes

Usage Examples

Send a JSON Subscription Message

{
  "command": "websocket-send",
  "params": {
    "sendMessage": "{\"type\":\"subscribe\",\"channel\":\"live_odds\"}"
  }
}

Send a Ping

{
  "command": "websocket-send",
  "params": {
    "sendMessage": "ping"
  }
}