{
  "_messages": "/* Encoded message payloads that every client library should 1. send via raw POST and receive correctly decoded via a realtime channel instance and 2. send that again via realtime and check that it's encoded the same as here (e. g. via GET history) */",
  "messages": [
    {
      "data": "foo",
      "encoding": null,
      "action": 0,
      "expectedType": "string",
      "expectedValue": "foo"
    },
    {
      "data": "{\"foo\":42}",
      "encoding": null,
      "action": 1,
      "expectedType": "string",
      "expectedValue": "{\"foo\":42}"
    },
    {
      "data": "{\"foo\":42,\"bar\":[\"a\",1.2,{\"boo\":\"ha\"}]}",
      "encoding": "json",
      "action": 2,
      "expectedType": "jsonObject",
      "expectedValue": { "foo": 42, "bar": ["a", 1.2, { "boo": "ha" }] }
    },
    {
      "data": "[{\"foo\":42},\"qux\"]",
      "encoding": "json",
      "action": 3,
      "expectedType": "jsonArray",
      "expectedValue": [{ "foo": 42 }, "qux"]
    },
    {
      "data": "3q2+7w==",
      "encoding": "base64",
      "action": 4,
      "expectedType": "binary",
      "expectedHexValue": "deadbeef"
    }
  ]
}
