Android-DDP icon indicating copy to clipboard operation
Android-DDP copied to clipboard

Multi subscribe

Open Lemniscate317 opened this issue 8 years ago • 0 comments

I put the subscribe in Onconnect.when connect success,it will subscribe the collecion.

String flag = null;

onConnect(){
  if (flag !=null)return
  flag = singleinstance.subscrbe("any collections")
}
onDisconnect(){
  flag =null;
}

above is the code what i subscribe.

now the ques is:in local test env,i see no multi subscribe. but in the online env,in the monitor,the logs show that the app always subscribe the method, i am confuse,so i ask the ques in here,hope your reply!

Lemniscate317 avatar Aug 30 '17 02:08 Lemniscate317