You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using LiveQuery with Android device. The problem is that the events (like UPDATE) were delivered twice when they should have been delivered only once. I tried to look in here,
but couldnt really see a problem. Then I enabled logLevel : verbose in the server and the server actually receives the request twice. Am I doing something wrong ? or is it really a bug ?
Okay, so I think I found the problem.
So, If I subscribe() inside the onLiveQueryClientConnected() its sending the subscription request twice. If I subscribe() outside that callback, It works fine.
I thought one could only subscribe when the LiveQueryClient is connected.
Though not a big issue, it still looks like a bug.
Issue Description
I am using LiveQuery with Android device. The problem is that the events (like
UPDATE
) were delivered twice when they should have been delivered only once. I tried to look in here,but couldnt really see a problem. Then I enabled
logLevel : verbose
in the server and the server actually receives the request twice. Am I doing something wrong ? or is it really a bug ?Steps to reproduce
The server config should contain these keys :
The android client has this code :
Logs/Trace
Logs on android client :
Logs on the server :
Expected Results
The server should recieve only one subscription request and hence should dispatch the
UPDATE
events only once.Actual Outcome
As it can be seen in the logs that the server is recieving 2 subscription request and hence dispatches the
UPDATE
events twice.Environment Setup
The text was updated successfully, but these errors were encountered: