1) But when did subscribe and unsubscribe events trigger? unsubscribe is not triggering when I close browser / tab. Only disconnect is triggered.
2) Also, when is subscribe triggered? When I reconnect to application again, it is not triggering.
What I want now is, When user disconnect from the app, I will update that user to offline mode and if he come back to application, I have to update him to online mode again.....How can I acheive this??
Hi @przbadu the https://github.com/ryanb/private_pub gem has nothing to do with this project. I suggest you raise this issue over there. Cheers. /cc @ryanb
Hi, I am using
private_pub
gem to configurefaye
in my applicaiton.PROBLEM
Now, my problem is, when I close browser or browser tab where my app is running, the
disconnect
event fires up:e.g:
1) But when did
subscribe
andunsubscribe
events trigger?unsubscribe
is not triggering when I close browser / tab. Onlydisconnect
is triggered. 2) Also, when issubscribe
triggered? When I reconnect to application again, it is not triggering.What I want now is, When user disconnect from the app, I will update that user to offline mode and if he come back to application, I have to update him to online mode again.....How can I acheive this??