I'm developing an app to show all new questions for any tags that user is watching in realtime. So instead of using the REST API, I want to use the WebSocket at:
I'm able to observe for any tag with this action:
And (looks like) I can observe as many as I need without limit. But when I send multiple actions for multiple tags, and IF a question has multiple tags of my choice together, The server respond me multiple times for a single question. For example
My current solution is to keep the id of the responds and remove duplicates locally.
So THE QUESTION IS: Is there a built in way to remove duplicates? Like a unique action to get multiple tags or etc. Just like the original site itself.
Pseudo action desired just for more clarification:
<siteid>-questions-newest-any-tags-<tagname>;<tagname>;<tagname> // any
<siteid>-questions-newest-all-tags-<tagname>;<tagname>;<tagname> // all