{"action":"created","issue":{"url":"https://api.github.com/repos/hoodiehq/hoodie-plugin-global-share/issues/20","labels_url":"https://api.github.com/repos/hoodiehq/hoodie-plugin-global-share/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/hoodiehq/hoodie-plugin-global-share/issues/20/comments","events_url":"https://api.github.com/repos/hoodiehq/hoodie-plugin-global-share/issues/20/events","html_url":"https://github.com/hoodiehq/hoodie-plugin-global-share/issues/20","id":55736033,"number":20,"title":"hoodie.global.on doesn't work","user":{"login":"spinningarrow","id":1797328,"avatar_url":"https://avatars.githubusercontent.com/u/1797328?v=3","gravatar_id":"","url":"https://api.github.com/users/spinningarrow","html_url":"https://github.com/spinningarrow","followers_url":"https://api.github.com/users/spinningarrow/followers","following_url":"https://api.github.com/users/spinningarrow/following{/other_user}","gists_url":"https://api.github.com/users/spinningarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/spinningarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinningarrow/subscriptions","organizations_url":"https://api.github.com/users/spinningarrow/orgs","repos_url":"https://api.github.com/users/spinningarrow/repos","events_url":"https://api.github.com/users/spinningarrow/events{/privacy}","received_events_url":"https://api.github.com/users/spinningarrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T10:03:38Z","updated_at":"2015-01-28T14:31:44Z","closed_at":null,"body":"If I add a `hoodie.global.on('add', callback)` statement in my JS file, and then do `hoodie.store.add(<something>).publish()` from a different browser session/user, the `callback` doesn't actually get called. What am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/hoodiehq/hoodie-plugin-global-share/issues/comments/71843148","html_url":"https://github.com/hoodiehq/hoodie-plugin-global-share/issues/20#issuecomment-71843148","issue_url":"https://api.github.com/repos/hoodiehq/hoodie-plugin-global-share/issues/20","id":71843148,"user":{"login":"spinningarrow","id":1797328,"avatar_url":"https://avatars.githubusercontent.com/u/1797328?v=3","gravatar_id":"","url":"https://api.github.com/users/spinningarrow","html_url":"https://github.com/spinningarrow","followers_url":"https://api.github.com/users/spinningarrow/followers","following_url":"https://api.github.com/users/spinningarrow/following{/other_user}","gists_url":"https://api.github.com/users/spinningarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/spinningarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinningarrow/subscriptions","organizations_url":"https://api.github.com/users/spinningarrow/orgs","repos_url":"https://api.github.com/users/spinningarrow/repos","events_url":"https://api.github.com/users/spinningarrow/events{/privacy}","received_events_url":"https://api.github.com/users/spinningarrow/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T14:31:44Z","updated_at":"2015-01-28T14:31:44Z","body":"I did something similar:\r\n\r\n```javascript\r\nhoodie.store.add(<something>).publish().then(function () { console.log('success'); }, function () { console.log('error'); })\r\n```\r\n\r\nand didn't see `error`.\r\n\r\nThe funny thing is, if I run `hoodie.global.sync()` in the devtools console, I suddenly see all the documents that I should have (and then the updating continues if new documents are created)."}}