Disconnect or unsubscribe duplicate client from the same LiveQuery

Hi.
I need some help please.
sometimes LiveQuery events trigger twice or more from my Android app…I know that is because the LiveQuery setup is not well in my Android app.
my question is:
Is there a way in Cloud Code to prevent a client from connecting to the same LiveQuery twice that already has connected from my Android app?
thank you.

I’m not sure if there’s an easy way but you can try something using the before Connect trigger. I’d rather fix the Android app though.

1 Like

Thank you for the reply.
Is there a way to know if the the client has delivered the livequery ?because when the internet of the client is off suddenly, the client is still connected to livequery, so i dont know if the the client has delivered the livequery or not