{"action":"created","issue":{"url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/17","repository_url":"https://api.github.com/repos/CodementorIO/rest-firebase","labels_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/17/comments","events_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/17/events","html_url":"https://github.com/CodementorIO/rest-firebase/issues/17","id":184926277,"number":17,"title":"Setting up Listener in rest-firebase","user":{"login":"oscar-johnson","id":23038623,"avatar_url":"https://avatars.githubusercontent.com/u/23038623?v=3","gravatar_id":"","url":"https://api.github.com/users/oscar-johnson","html_url":"https://github.com/oscar-johnson","followers_url":"https://api.github.com/users/oscar-johnson/followers","following_url":"https://api.github.com/users/oscar-johnson/following{/other_user}","gists_url":"https://api.github.com/users/oscar-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/oscar-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscar-johnson/subscriptions","organizations_url":"https://api.github.com/users/oscar-johnson/orgs","repos_url":"https://api.github.com/users/oscar-johnson/repos","events_url":"https://api.github.com/users/oscar-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/oscar-johnson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CodementorIO/rest-firebase/labels/support","name":"support","color":"159818"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-10-24T19:02:00Z","updated_at":"2016-10-27T15:42:39Z","closed_at":null,"body":"Very new to the rest-firebase gem.  Would like to setup rest-firebase to listen for changes to a NEST client.  Have successfully setup rest-firebase with the proper firebase URL, along with the SECRET assigned to NEST developer and have generated a token (does not look to be in the standard JWT format) .  I am able to run an \"f.get\" and retrieve my NEST data successful; however, if I do too many of these, I get the standard 429 (too many requests error).\r\n\r\nSo, was wondering what the best way is to setup a listener using Ruby.  Are there any examples out there?\r\n\r\nThe only example similar was for  using the em-eventsource gem which I am assuming the same thing rest-firebase is capable of doing\r\n\r\n```\r\nrequire \"em-eventsource\"\r\nEM.run do\r\n    source = EventMachine::EventSource.new(\"http://example.com/streaming\")\r\n     source.message do |message|\r\n         puts \"new message #{message}\"\r\n     end\r\n     source.start # Start listening\r\n end\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/comments/256681550","html_url":"https://github.com/CodementorIO/rest-firebase/issues/17#issuecomment-256681550","issue_url":"https://api.github.com/repos/CodementorIO/rest-firebase/issues/17","id":256681550,"user":{"login":"oscar-johnson","id":23038623,"avatar_url":"https://avatars.githubusercontent.com/u/23038623?v=3","gravatar_id":"","url":"https://api.github.com/users/oscar-johnson","html_url":"https://github.com/oscar-johnson","followers_url":"https://api.github.com/users/oscar-johnson/followers","following_url":"https://api.github.com/users/oscar-johnson/following{/other_user}","gists_url":"https://api.github.com/users/oscar-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/oscar-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscar-johnson/subscriptions","organizations_url":"https://api.github.com/users/oscar-johnson/orgs","repos_url":"https://api.github.com/users/oscar-johnson/repos","events_url":"https://api.github.com/users/oscar-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/oscar-johnson/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T15:42:39Z","updated_at":"2016-10-27T15:42:39Z","body":"Agreed, working on skipping keep-alive events.\n\nOn Wed, Oct 26, 2016 at 11:31 AM, Lin Jen-Shin (godfat) <\nnotifications@github.com> wrote:\n\n> Then you should probably skip keep-alive event in your code. Also HTML\n> doesn't work in email reply. There's no highlights at all.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/CodementorIO/rest-firebase/issues/17#issuecomment-256437289>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AV-Kn636vublb8QiHLl6JL8t2G5x4jJ_ks5q35yJgaJpZM4KfKN1>\n> .\n>\n"}}
{"actor":{"display_login":"oscar-johnson"}}