Skip to content
Nokku LogoNokku
API Referencev1.0.0 · 174 endpoints

nokku.v1.ConnectRequest

object

At most one of `heartbeat`, `connectionReport` may be set.

nokku.v1.ConnectRequest
heartbeat?
object
stateHash?
string <byte>

The state_hash of the last sync the daemon saved, empty before the first. bytes.max_len = 64

connectionReport?
object

ConnectionReport tells the core who logged in on the daemon's server and when they left. The daemon sends one report at a time and keeps its events until the ack. A report may so come twice, the core stores each event once.

events?
array<nokku.v1.ConnectionEvent>
dropped?
integer

Events the daemon threw away since its last report, because it could keep no more.

Example

{
  "heartbeat": {
    "stateHash": "string"
  },
  "connectionReport": {
    "events": [
      {
        "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d",
        "closed": true,
        "time": "2023-01-15T01:30:15.01Z",
        "principal": "string",
        "keyId": "string",
        "remoteAddr": "string",
        "clientVersion": "string",
        "relayed": true
      }
    ],
    "dropped": 0
  }
}