Connection

Returns connection statistics

Returns statistics about current connection

get/connection/statistics

Response

Connection statistics

bytes_receivedinteger
bytes_sentinteger
durationinteger

connection duration in seconds

throughput_receivedinteger

Download speed in bits per second

throughput_sentinteger

Upload speed in bits per second

tokens_spentInt

Operations always take pointer arguments (*Int) rather than Int values, and each unique Int value requires its own unique *Int pointer. To "copy" an Int value, an existing (or newly allocated) Int must be set to a new value using the Int.Set method; shallow copies of Ints are not supported and may lead to errors.

Example response

{
  "bytes_received": 1024,
  "bytes_sent": 1024,
  "duration": 60,
  "throughput_received": 1024,
  "throughput_sent": 1024
}

Changes