summaryrefslogtreecommitdiff
path: root/doc/protocol.md
blob: 282c863281b87b227874186b0d29ef95a1de07f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Messages

## init

{
  "hostname": "myhostname",
  "streamer-id": { "content-id": "av-orig", "format": "flash", "quality": "medium" },
  "tags": [ "elevate", "2014", "discourse" ]
}

## data-update

{
  "start-time": "2014-08-03Z12:34:56.123",
  "duration-ms": 5000,
  "data": {
    "clients": [
       { "ip": "127.0.0.1:2345", "bytes-transferred": 12094, "user-agent": "Mozilla Version 28", .... },
        .....
    ],
    "client-count": 12,
    "bytes-received": 12345,
    "bytes-sent": 921734098,
     ....
  }
}