{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/24","id":35753808,"html_url":"https://github.com/freedomjs/freedom-social-firebase/pull/24","diff_url":"https://github.com/freedomjs/freedom-social-firebase/pull/24.diff","patch_url":"https://github.com/freedomjs/freedom-social-firebase/pull/24.patch","issue_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/24","number":24,"state":"open","locked":false,"title":"Detect disconnect in Firebase social providers","user":{"login":"dborkan","id":6494307,"avatar_url":"https://avatars.githubusercontent.com/u/6494307?v=3","gravatar_id":"","url":"https://api.github.com/users/dborkan","html_url":"https://github.com/dborkan","followers_url":"https://api.github.com/users/dborkan/followers","following_url":"https://api.github.com/users/dborkan/following{/other_user}","gists_url":"https://api.github.com/users/dborkan/gists{/gist_id}","starred_url":"https://api.github.com/users/dborkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dborkan/subscriptions","organizations_url":"https://api.github.com/users/dborkan/orgs","repos_url":"https://api.github.com/users/dborkan/repos","events_url":"https://api.github.com/users/dborkan/events{/privacy}","received_events_url":"https://api.github.com/users/dborkan/received_events","type":"User","site_admin":false},"body":"Detect disconnect in Firebase social providers.  This is using Firebase's special .info/connected endpoint, documented at https://www.firebase.com/docs/web/guide/offline-capabilities.html\r\n\r\nAlso I've changed this.baseRef_ to be the reference to the top-level Firebase app (e.g. https://popping-heat-4874.firebaseio.com/ for uProxy), and added this.allUsersUrl_ to be what baseRef_ used to represent (e.g. https://popping-heat-4874.firebaseio.com/facebook-users for uProxy with Facebook)\r\n\r\nFixes https://github.com/freedomjs/freedom-social-firebase/issues/10 and https://github.com/uProxy/uproxy/issues/1392\r\n\r\nTested in Chrome (uProxy automatically reconnects) and Firefox (reconnect not implemented but uProxy successfully detects the disconnect)","created_at":"2015-05-19T17:20:37Z","updated_at":"2015-05-19T17:20:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/24/commits","review_comments_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/24/comments","review_comment_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/24/comments","statuses_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/statuses/1cb9b96a4eabbfe7626dc0e93b935a7c28e7fd94","head":{"label":"freedomjs:dborkan-disconnect","ref":"dborkan-disconnect","sha":"1cb9b96a4eabbfe7626dc0e93b935a7c28e7fd94","user":{"login":"freedomjs","id":5855670,"avatar_url":"https://avatars.githubusercontent.com/u/5855670?v=3","gravatar_id":"","url":"https://api.github.com/users/freedomjs","html_url":"https://github.com/freedomjs","followers_url":"https://api.github.com/users/freedomjs/followers","following_url":"https://api.github.com/users/freedomjs/following{/other_user}","gists_url":"https://api.github.com/users/freedomjs/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomjs/subscriptions","organizations_url":"https://api.github.com/users/freedomjs/orgs","repos_url":"https://api.github.com/users/freedomjs/repos","events_url":"https://api.github.com/users/freedomjs/events{/privacy}","received_events_url":"https://api.github.com/users/freedomjs/received_events","type":"Organization","site_admin":false},"repo":{"id":30378484,"name":"freedom-social-firebase","full_name":"freedomjs/freedom-social-firebase","owner":{"login":"freedomjs","id":5855670,"avatar_url":"https://avatars.githubusercontent.com/u/5855670?v=3","gravatar_id":"","url":"https://api.github.com/users/freedomjs","html_url":"https://github.com/freedomjs","followers_url":"https://api.github.com/users/freedomjs/followers","following_url":"https://api.github.com/users/freedomjs/following{/other_user}","gists_url":"https://api.github.com/users/freedomjs/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomjs/subscriptions","organizations_url":"https://api.github.com/users/freedomjs/orgs","repos_url":"https://api.github.com/users/freedomjs/repos","events_url":"https://api.github.com/users/freedomjs/events{/privacy}","received_events_url":"https://api.github.com/users/freedomjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freedomjs/freedom-social-firebase","description":"Firebase Social Provider","fork":false,"url":"https://api.github.com/repos/freedomjs/freedom-social-firebase","forks_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/forks","keys_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/teams","hooks_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/hooks","issue_events_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/events{/number}","events_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/events","assignees_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/assignees{/user}","branches_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/branches{/branch}","tags_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/tags","blobs_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/refs{/sha}","trees_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/statuses/{sha}","languages_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/languages","stargazers_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/stargazers","contributors_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/contributors","subscribers_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/subscribers","subscription_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/subscription","commits_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/commits{/sha}","git_commits_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/commits{/sha}","comments_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/comments{/number}","issue_comment_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/comments{/number}","contents_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/contents/{+path}","compare_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/merges","archive_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/downloads","issues_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues{/number}","pulls_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls{/number}","milestones_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/milestones{/number}","notifications_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/labels{/name}","releases_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/releases{/id}","created_at":"2015-02-05T21:07:44Z","updated_at":"2015-04-25T15:16:38Z","pushed_at":"2015-05-19T16:03:18Z","git_url":"git://github.com/freedomjs/freedom-social-firebase.git","ssh_url":"git@github.com:freedomjs/freedom-social-firebase.git","clone_url":"https://github.com/freedomjs/freedom-social-firebase.git","svn_url":"https://github.com/freedomjs/freedom-social-firebase","homepage":"","size":660,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"freedomjs:master","ref":"master","sha":"371a6fb79c0337e2ad317dd82f14646654b2f218","user":{"login":"freedomjs","id":5855670,"avatar_url":"https://avatars.githubusercontent.com/u/5855670?v=3","gravatar_id":"","url":"https://api.github.com/users/freedomjs","html_url":"https://github.com/freedomjs","followers_url":"https://api.github.com/users/freedomjs/followers","following_url":"https://api.github.com/users/freedomjs/following{/other_user}","gists_url":"https://api.github.com/users/freedomjs/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomjs/subscriptions","organizations_url":"https://api.github.com/users/freedomjs/orgs","repos_url":"https://api.github.com/users/freedomjs/repos","events_url":"https://api.github.com/users/freedomjs/events{/privacy}","received_events_url":"https://api.github.com/users/freedomjs/received_events","type":"Organization","site_admin":false},"repo":{"id":30378484,"name":"freedom-social-firebase","full_name":"freedomjs/freedom-social-firebase","owner":{"login":"freedomjs","id":5855670,"avatar_url":"https://avatars.githubusercontent.com/u/5855670?v=3","gravatar_id":"","url":"https://api.github.com/users/freedomjs","html_url":"https://github.com/freedomjs","followers_url":"https://api.github.com/users/freedomjs/followers","following_url":"https://api.github.com/users/freedomjs/following{/other_user}","gists_url":"https://api.github.com/users/freedomjs/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomjs/subscriptions","organizations_url":"https://api.github.com/users/freedomjs/orgs","repos_url":"https://api.github.com/users/freedomjs/repos","events_url":"https://api.github.com/users/freedomjs/events{/privacy}","received_events_url":"https://api.github.com/users/freedomjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freedomjs/freedom-social-firebase","description":"Firebase Social Provider","fork":false,"url":"https://api.github.com/repos/freedomjs/freedom-social-firebase","forks_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/forks","keys_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/teams","hooks_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/hooks","issue_events_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/events{/number}","events_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/events","assignees_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/assignees{/user}","branches_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/branches{/branch}","tags_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/tags","blobs_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/refs{/sha}","trees_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/statuses/{sha}","languages_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/languages","stargazers_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/stargazers","contributors_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/contributors","subscribers_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/subscribers","subscription_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/subscription","commits_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/commits{/sha}","git_commits_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/git/commits{/sha}","comments_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/comments{/number}","issue_comment_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/comments{/number}","contents_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/contents/{+path}","compare_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/merges","archive_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/downloads","issues_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues{/number}","pulls_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls{/number}","milestones_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/milestones{/number}","notifications_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/labels{/name}","releases_url":"https://api.github.com/repos/freedomjs/freedom-social-firebase/releases{/id}","created_at":"2015-02-05T21:07:44Z","updated_at":"2015-04-25T15:16:38Z","pushed_at":"2015-05-19T16:03:18Z","git_url":"git://github.com/freedomjs/freedom-social-firebase.git","ssh_url":"git@github.com:freedomjs/freedom-social-firebase.git","clone_url":"https://github.com/freedomjs/freedom-social-firebase.git","svn_url":"https://github.com/freedomjs/freedom-social-firebase","homepage":"","size":660,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/24"},"html":{"href":"https://github.com/freedomjs/freedom-social-firebase/pull/24"},"issue":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/24"},"comments":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/freedomjs/freedom-social-firebase/statuses/1cb9b96a4eabbfe7626dc0e93b935a7c28e7fd94"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":38,"deletions":12,"changed_files":1}}