WebSocket : How to filter api/socket response device wise or group wise

nelsonp 7 years ago

Hello Anton,

You did a great job !!

Currently I am working on live tracking page.

I have gone through your API documentation and I found webSocket API endpoint, I am getting positions, device and events for all of my registered vehicles.

So in this case, Is it possible to apply this service for selected vehicle or group ? Or you can suggest me a way for it.

Any of your suggestion will be highly appreciated.

jaimzj 7 years ago

Hello,

You can just add 'if conditions' to the data you receive.

Anton Tananaev 7 years ago

You can create a user that only has access to the device or group you want to track.

nelsonp 7 years ago

Thanks Anton,

Your solution is working now