{"action":"opened","issue":{"url":"https://api.github.com/repos/numtel/meteor-mysql/issues/9","labels_url":"https://api.github.com/repos/numtel/meteor-mysql/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/numtel/meteor-mysql/issues/9/comments","events_url":"https://api.github.com/repos/numtel/meteor-mysql/issues/9/events","html_url":"https://github.com/numtel/meteor-mysql/issues/9","id":60829132,"number":9,"title":"How to show Busy UI while subscriptions are being waited for updates?","user":{"login":"KrishnaPG","id":4610831,"avatar_url":"https://avatars.githubusercontent.com/u/4610831?v=3","gravatar_id":"","url":"https://api.github.com/users/KrishnaPG","html_url":"https://github.com/KrishnaPG","followers_url":"https://api.github.com/users/KrishnaPG/followers","following_url":"https://api.github.com/users/KrishnaPG/following{/other_user}","gists_url":"https://api.github.com/users/KrishnaPG/gists{/gist_id}","starred_url":"https://api.github.com/users/KrishnaPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrishnaPG/subscriptions","organizations_url":"https://api.github.com/users/KrishnaPG/orgs","repos_url":"https://api.github.com/users/KrishnaPG/repos","events_url":"https://api.github.com/users/KrishnaPG/events{/privacy}","received_events_url":"https://api.github.com/users/KrishnaPG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-12T14:40:57Z","updated_at":"2015-03-12T14:40:57Z","closed_at":null,"body":"Hoping you could throw some light on something I have been trying to figure out, but couldn't.\r\n\r\nThe situation is like this:\r\n\r\nI am using MysqlSubscription on Meteor server.\r\n\r\n    1. On the client side HTML I have a button that when clicked makes a meteor server call\r\n    2. Meteor server creates new values and pushes into SQL DB\r\n    3. Meteor server's subscriptions get updated through SQL DB's binop log updates\r\n    4. And through your magic package client receives the updates.\r\n\r\nThe question, while all this is happening \"from button click on html\" to \"results coming back through subscriptions\", there is slight time gap, and I would like to show a \"busy\" spinner on HTML UI on client side.\r\n\r\nI can start the spinner in the button click handler. But how to know when to stop it.\r\n\r\nThat is: after button is clicked on the client side, how to know when the client's subscriptions have been updated successfully?\r\n\r\nIf there is some kind of callback to let the client know whenever the subscriptions have been updated, then the spinner can be stopped inside the callback.\r\n\r\nAny pointers?"}}