{"action":"created","issue":{"url":"https://api.github.com/repos/matb33/meteor-collection-hooks/issues/183","repository_url":"https://api.github.com/repos/matb33/meteor-collection-hooks","labels_url":"https://api.github.com/repos/matb33/meteor-collection-hooks/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/matb33/meteor-collection-hooks/issues/183/comments","events_url":"https://api.github.com/repos/matb33/meteor-collection-hooks/issues/183/events","html_url":"https://github.com/matb33/meteor-collection-hooks/issues/183","id":143970694,"number":183,"title":"Client side hook ","user":{"login":"CharlesNo","id":5753629,"avatar_url":"https://avatars.githubusercontent.com/u/5753629?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesNo","html_url":"https://github.com/CharlesNo","followers_url":"https://api.github.com/users/CharlesNo/followers","following_url":"https://api.github.com/users/CharlesNo/following{/other_user}","gists_url":"https://api.github.com/users/CharlesNo/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesNo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesNo/subscriptions","organizations_url":"https://api.github.com/users/CharlesNo/orgs","repos_url":"https://api.github.com/users/CharlesNo/repos","events_url":"https://api.github.com/users/CharlesNo/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesNo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-28T12:55:53Z","updated_at":"2016-03-29T13:30:24Z","closed_at":null,"body":"I need to have a hook on a collection to notify some users that some other users have completed a job.\r\n\r\nBasically, I added this to the onCreated of a template (properly removed() on the onDestroyed).\r\n\r\n```\r\nJobs.after.update(function(userId, doc, fieldNames, modifier, options) {\r\n  console.log('Job changed');\r\n});\r\n```\r\nThe client only hook changes done on the current window. If I duplicate the tab and do modifications to Jobs, the first tab doesn't hook at all.\r\nIt's not the behavior I expected. It is normal ?\r\nHow can a client hooks changes client sidely ?\r\nI'm using these packages:\r\n\r\naldeed:collection2\r\ndburles:collection-helpers\r\n"},"comment":{"url":"https://api.github.com/repos/matb33/meteor-collection-hooks/issues/comments/202893719","html_url":"https://github.com/matb33/meteor-collection-hooks/issues/183#issuecomment-202893719","issue_url":"https://api.github.com/repos/matb33/meteor-collection-hooks/issues/183","id":202893719,"user":{"login":"CharlesNo","id":5753629,"avatar_url":"https://avatars.githubusercontent.com/u/5753629?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesNo","html_url":"https://github.com/CharlesNo","followers_url":"https://api.github.com/users/CharlesNo/followers","following_url":"https://api.github.com/users/CharlesNo/following{/other_user}","gists_url":"https://api.github.com/users/CharlesNo/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesNo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesNo/subscriptions","organizations_url":"https://api.github.com/users/CharlesNo/orgs","repos_url":"https://api.github.com/users/CharlesNo/repos","events_url":"https://api.github.com/users/CharlesNo/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesNo/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T13:30:24Z","updated_at":"2016-03-29T13:30:24Z","body":"My bad, by completed I mean one of the field of my Job is set to a date. So \"changed\" of \"observeChanges\" is fine for me (and is triggered even if the action is done on an other instance of Meteor). \r\nBut on the server side I can see an interest using your package, for example if I have multiple instances of Meteor, you package will trigger only once (I will use multi meteor + nginx with sticky session). Not sure I'm doing good, I'm on a step where I try to scale Meteor."}}