Hi everyone.
I have a question about the WebSocket protocol for receiving live predictions as outlined towards the end of this article: https://blog.tfl.gov.uk/2015/12/07/unified-api-part-5-aot-arrivals-of-things/
The JS code includes the addition of line rooms as a way to subscribe to specific events. { "LineId": "northern", "NaptanId": "940GZZLUODS" }
, for example.
However, when I tried to subscribe to this line room: {“LineId": “453”, “VehicleId: “LTZ1868”}, SignalR ignored the VehicleId constraint and served all 453 bus arrival predictions regardless of vehicle Id.
I am wondering if anyone knows which attributes can be used to filter the predictions that are being sent, besides LineId and NaptanId.
Thank you,
Max