WebSocket Track Update

Example

  {
    "msgId": "my-request",
    "object": "track",
    "type": "update",
    "id": "t53b1d1600cf27b75148de0ac",
    "value": {
        "filter" : "elems.rating > 80"
    }
  }

Response


Example

 {
    "head": {
      "msgId": "my-request",
      "ok": true,
      "errors": [],
      "messages": [ "Your request has been processed successfully." ]
    },
    "body": {
      "id": "t53b1d1600cf27b75148de0ac",
      "source" : "/bob/my_source",
      "destination" : "/bob/my_destination",
      "filter" : "elems.rating > 80",
      "js" : "function f(input) { var output = input; output.elems['stars'] = {'type' : 'float', 'value' : input.elems['rating'].value/25 }; delete output.elems['rating']; return output; }"
    }
  }