Cotton code
77 lines · 2.0 KB · JSONRaw
{  "_": "What the Worker's FCM data message and socket frame carry for each call payload (src/calling/push.ts frameData), checked against the Worker here (calling-units.test.ts) and read by Android's CallPush.of (CallPushTest.kt): both sides test this file, neither reads the other's source.",  "cases": [    {      "name": "ring",      "payload": {        "room": "0123456789abcdef0123456789abcdef",        "video": true,        "box": "c1:sealed"      },      "data": {        "kind": "ring",        "room": "0123456789abcdef0123456789abcdef",        "video": "1",        "box": "c1:sealed"      }    },    {      "name": "ring, voice, no box",      "payload": {        "room": "0123456789abcdef0123456789abcdef",        "video": false      },      "data": {        "kind": "ring",        "room": "0123456789abcdef0123456789abcdef",        "video": "0"      }    },    {      "name": "ring to a phone that speaks it, with its start",      "payload": {        "room": "0123456789abcdef0123456789abcdef",        "video": false,        "box": "c1:sealed",        "at": 1790000000000      },      "data": {        "kind": "ring",        "room": "0123456789abcdef0123456789abcdef",        "video": "0",        "box": "c1:sealed",        "at": "1790000000000"      }    },    {      "name": "stop, as main",      "payload": {        "room": "0123456789abcdef0123456789abcdef",        "stop": "answered_elsewhere"      },      "data": {        "kind": "stop",        "room": "0123456789abcdef0123456789abcdef",        "stop": "answered_elsewhere"      }    },    {      "name": "missed stop to a phone that speaks it",      "payload": {        "room": "0123456789abcdef0123456789abcdef",        "stop": "missed",        "box": "c1:sealed",        "at": 1790000000000,        "ended": 1790000045000      },      "data": {        "kind": "stop",        "room": "0123456789abcdef0123456789abcdef",        "stop": "missed",        "box": "c1:sealed",        "at": "1790000000000",        "ended": "1790000045000"      }    }  ]}