{"action":"created","comment":{"url":"https://api.github.com/repos/sarukuku/retris/pulls/comments/233857410","pull_request_review_id":175368205,"id":233857410,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzg1NzQxMA==","diff_hunk":"@@ -127,7 +136,10 @@ class Display extends Component<DisplayProps, DisplayComponentState> {\n       case views.DISPLAY_WAITING_TO_START:\n         return <WaitingToStart />\n       case views.DISPLAY_GAME:\n-        return <Game socket={socket!} onGameOver={this.gameOver} />\n+        if (!socket) {\n+          throw new Error(\"Socket is not available\")","path":"src/pages/display.tsx","position":null,"original_position":60,"commit_id":"49ee29e8bd48d61aa5f0129f7d5ca4d8fa7f3c42","original_commit_id":"04495dfbf027a44f84eb1f545ad8560891bbcea3","user":{"login":"szokodiakos","id":5138121,"node_id":"MDQ6VXNlcjUxMzgxMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5138121?v=4","gravatar_id":"","url":"https://api.github.com/users/szokodiakos","html_url":"https://github.com/szokodiakos","followers_url":"https://api.github.com/users/szokodiakos/followers","following_url":"https://api.github.com/users/szokodiakos/following{/other_user}","gists_url":"https://api.github.com/users/szokodiakos/gists{/gist_id}","starred_url":"https://api.github.com/users/szokodiakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szokodiakos/subscriptions","organizations_url":"https://api.github.com/users/szokodiakos/orgs","repos_url":"https://api.github.com/users/szokodiakos/repos","events_url":"https://api.github.com/users/szokodiakos/events{/privacy}","received_events_url":"https://api.github.com/users/szokodiakos/received_events","type":"User","site_admin":false},"body":"Added an error page and if the socket is falsy we'll render the \"Something went wrong\"","created_at":"2018-11-15T14:17:17Z","updated_at":"2018-11-15T14:17:17Z","html_url":"https://github.com/sarukuku/retris/pull/40#discussion_r233857410","pull_request_url":"https://api.github.com/repos/sarukuku/retris/pulls/40","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sarukuku/retris/pulls/comments/233857410"},"html":{"href":"https://github.com/sarukuku/retris/pull/40#discussion_r233857410"},"pull_request":{"href":"https://api.github.com/repos/sarukuku/retris/pulls/40"}},"in_reply_to_id":233842879},"pull_request":{"url":"https://api.github.com/repos/sarukuku/retris/pulls/40","id":231195647,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMTk1NjQ3","html_url":"https://github.com/sarukuku/retris/pull/40","diff_url":"https://github.com/sarukuku/retris/pull/40.diff","patch_url":"https://github.com/sarukuku/retris/pull/40.patch","issue_url":"https://api.github.com/repos/sarukuku/retris/issues/40","number":40,"state":"open","locked":false,"title":"Inactive socket fix","user":{"login":"szokodiakos","id":5138121,"node_id":"MDQ6VXNlcjUxMzgxMjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5138121?v=4","gravatar_id":"","url":"https://api.github.com/users/szokodiakos","html_url":"https://github.com/szokodiakos","followers_url":"https://api.github.com/users/szokodiakos/followers","following_url":"https://api.github.com/users/szokodiakos/following{/other_user}","gists_url":"https://api.github.com/users/szokodiakos/gists{/gist_id}","starred_url":"https://api.github.com/users/szokodiakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szokodiakos/subscriptions","organizations_url":"https://api.github.com/users/szokodiakos/orgs","repos_url":"https://api.github.com/users/szokodiakos/repos","events_url":"https://api.github.com/users/szokodiakos/events{/privacy}","received_events_url":"https://api.github.com/users/szokodiakos/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-15T13:33:22Z","updated_at":"2018-11-15T14:17:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1b9c9755c7e4bd1f17bd472ce6d80a72247242e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sarukuku/retris/pulls/40/commits","review_comments_url":"https://api.github.com/repos/sarukuku/retris/pulls/40/comments","review_comment_url":"https://api.github.com/repos/sarukuku/retris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sarukuku/retris/issues/40/comments","statuses_url":"https://api.github.com/repos/sarukuku/retris/statuses/49ee29e8bd48d61aa5f0129f7d5ca4d8fa7f3c42","head":{"label":"sarukuku:inactive-socket-fix","ref":"inactive-socket-fix","sha":"49ee29e8bd48d61aa5f0129f7d5ca4d8fa7f3c42","user":{"login":"sarukuku","id":1204559,"node_id":"MDQ6VXNlcjEyMDQ1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1204559?v=4","gravatar_id":"","url":"https://api.github.com/users/sarukuku","html_url":"https://github.com/sarukuku","followers_url":"https://api.github.com/users/sarukuku/followers","following_url":"https://api.github.com/users/sarukuku/following{/other_user}","gists_url":"https://api.github.com/users/sarukuku/gists{/gist_id}","starred_url":"https://api.github.com/users/sarukuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarukuku/subscriptions","organizations_url":"https://api.github.com/users/sarukuku/orgs","repos_url":"https://api.github.com/users/sarukuku/repos","events_url":"https://api.github.com/users/sarukuku/events{/privacy}","received_events_url":"https://api.github.com/users/sarukuku/received_events","type":"User","site_admin":false},"repo":{"id":151705777,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE3MDU3Nzc=","name":"retris","full_name":"sarukuku/retris","private":false,"owner":{"login":"sarukuku","id":1204559,"node_id":"MDQ6VXNlcjEyMDQ1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1204559?v=4","gravatar_id":"","url":"https://api.github.com/users/sarukuku","html_url":"https://github.com/sarukuku","followers_url":"https://api.github.com/users/sarukuku/followers","following_url":"https://api.github.com/users/sarukuku/following{/other_user}","gists_url":"https://api.github.com/users/sarukuku/gists{/gist_id}","starred_url":"https://api.github.com/users/sarukuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarukuku/subscriptions","organizations_url":"https://api.github.com/users/sarukuku/orgs","repos_url":"https://api.github.com/users/sarukuku/repos","events_url":"https://api.github.com/users/sarukuku/events{/privacy}","received_events_url":"https://api.github.com/users/sarukuku/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sarukuku/retris","description":"Remotely playable tetris","fork":false,"url":"https://api.github.com/repos/sarukuku/retris","forks_url":"https://api.github.com/repos/sarukuku/retris/forks","keys_url":"https://api.github.com/repos/sarukuku/retris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarukuku/retris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarukuku/retris/teams","hooks_url":"https://api.github.com/repos/sarukuku/retris/hooks","issue_events_url":"https://api.github.com/repos/sarukuku/retris/issues/events{/number}","events_url":"https://api.github.com/repos/sarukuku/retris/events","assignees_url":"https://api.github.com/repos/sarukuku/retris/assignees{/user}","branches_url":"https://api.github.com/repos/sarukuku/retris/branches{/branch}","tags_url":"https://api.github.com/repos/sarukuku/retris/tags","blobs_url":"https://api.github.com/repos/sarukuku/retris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarukuku/retris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarukuku/retris/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarukuku/retris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarukuku/retris/statuses/{sha}","languages_url":"https://api.github.com/repos/sarukuku/retris/languages","stargazers_url":"https://api.github.com/repos/sarukuku/retris/stargazers","contributors_url":"https://api.github.com/repos/sarukuku/retris/contributors","subscribers_url":"https://api.github.com/repos/sarukuku/retris/subscribers","subscription_url":"https://api.github.com/repos/sarukuku/retris/subscription","commits_url":"https://api.github.com/repos/sarukuku/retris/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarukuku/retris/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarukuku/retris/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarukuku/retris/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarukuku/retris/contents/{+path}","compare_url":"https://api.github.com/repos/sarukuku/retris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarukuku/retris/merges","archive_url":"https://api.github.com/repos/sarukuku/retris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarukuku/retris/downloads","issues_url":"https://api.github.com/repos/sarukuku/retris/issues{/number}","pulls_url":"https://api.github.com/repos/sarukuku/retris/pulls{/number}","milestones_url":"https://api.github.com/repos/sarukuku/retris/milestones{/number}","notifications_url":"https://api.github.com/repos/sarukuku/retris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarukuku/retris/labels{/name}","releases_url":"https://api.github.com/repos/sarukuku/retris/releases{/id}","deployments_url":"https://api.github.com/repos/sarukuku/retris/deployments","created_at":"2018-10-05T10:37:12Z","updated_at":"2018-11-15T09:23:23Z","pushed_at":"2018-11-15T14:16:23Z","git_url":"git://github.com/sarukuku/retris.git","ssh_url":"git@github.com:sarukuku/retris.git","clone_url":"https://github.com/sarukuku/retris.git","svn_url":"https://github.com/sarukuku/retris","homepage":"","size":617,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":1,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"sarukuku:master","ref":"master","sha":"883a4113d9a745c62507f6238b7565e03130a331","user":{"login":"sarukuku","id":1204559,"node_id":"MDQ6VXNlcjEyMDQ1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1204559?v=4","gravatar_id":"","url":"https://api.github.com/users/sarukuku","html_url":"https://github.com/sarukuku","followers_url":"https://api.github.com/users/sarukuku/followers","following_url":"https://api.github.com/users/sarukuku/following{/other_user}","gists_url":"https://api.github.com/users/sarukuku/gists{/gist_id}","starred_url":"https://api.github.com/users/sarukuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarukuku/subscriptions","organizations_url":"https://api.github.com/users/sarukuku/orgs","repos_url":"https://api.github.com/users/sarukuku/repos","events_url":"https://api.github.com/users/sarukuku/events{/privacy}","received_events_url":"https://api.github.com/users/sarukuku/received_events","type":"User","site_admin":false},"repo":{"id":151705777,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE3MDU3Nzc=","name":"retris","full_name":"sarukuku/retris","private":false,"owner":{"login":"sarukuku","id":1204559,"node_id":"MDQ6VXNlcjEyMDQ1NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1204559?v=4","gravatar_id":"","url":"https://api.github.com/users/sarukuku","html_url":"https://github.com/sarukuku","followers_url":"https://api.github.com/users/sarukuku/followers","following_url":"https://api.github.com/users/sarukuku/following{/other_user}","gists_url":"https://api.github.com/users/sarukuku/gists{/gist_id}","starred_url":"https://api.github.com/users/sarukuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarukuku/subscriptions","organizations_url":"https://api.github.com/users/sarukuku/orgs","repos_url":"https://api.github.com/users/sarukuku/repos","events_url":"https://api.github.com/users/sarukuku/events{/privacy}","received_events_url":"https://api.github.com/users/sarukuku/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sarukuku/retris","description":"Remotely playable tetris","fork":false,"url":"https://api.github.com/repos/sarukuku/retris","forks_url":"https://api.github.com/repos/sarukuku/retris/forks","keys_url":"https://api.github.com/repos/sarukuku/retris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarukuku/retris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarukuku/retris/teams","hooks_url":"https://api.github.com/repos/sarukuku/retris/hooks","issue_events_url":"https://api.github.com/repos/sarukuku/retris/issues/events{/number}","events_url":"https://api.github.com/repos/sarukuku/retris/events","assignees_url":"https://api.github.com/repos/sarukuku/retris/assignees{/user}","branches_url":"https://api.github.com/repos/sarukuku/retris/branches{/branch}","tags_url":"https://api.github.com/repos/sarukuku/retris/tags","blobs_url":"https://api.github.com/repos/sarukuku/retris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarukuku/retris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarukuku/retris/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarukuku/retris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarukuku/retris/statuses/{sha}","languages_url":"https://api.github.com/repos/sarukuku/retris/languages","stargazers_url":"https://api.github.com/repos/sarukuku/retris/stargazers","contributors_url":"https://api.github.com/repos/sarukuku/retris/contributors","subscribers_url":"https://api.github.com/repos/sarukuku/retris/subscribers","subscription_url":"https://api.github.com/repos/sarukuku/retris/subscription","commits_url":"https://api.github.com/repos/sarukuku/retris/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarukuku/retris/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarukuku/retris/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarukuku/retris/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarukuku/retris/contents/{+path}","compare_url":"https://api.github.com/repos/sarukuku/retris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarukuku/retris/merges","archive_url":"https://api.github.com/repos/sarukuku/retris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarukuku/retris/downloads","issues_url":"https://api.github.com/repos/sarukuku/retris/issues{/number}","pulls_url":"https://api.github.com/repos/sarukuku/retris/pulls{/number}","milestones_url":"https://api.github.com/repos/sarukuku/retris/milestones{/number}","notifications_url":"https://api.github.com/repos/sarukuku/retris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarukuku/retris/labels{/name}","releases_url":"https://api.github.com/repos/sarukuku/retris/releases{/id}","deployments_url":"https://api.github.com/repos/sarukuku/retris/deployments","created_at":"2018-10-05T10:37:12Z","updated_at":"2018-11-15T09:23:23Z","pushed_at":"2018-11-15T14:16:23Z","git_url":"git://github.com/sarukuku/retris.git","ssh_url":"git@github.com:sarukuku/retris.git","clone_url":"https://github.com/sarukuku/retris.git","svn_url":"https://github.com/sarukuku/retris","homepage":"","size":617,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":1,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sarukuku/retris/pulls/40"},"html":{"href":"https://github.com/sarukuku/retris/pull/40"},"issue":{"href":"https://api.github.com/repos/sarukuku/retris/issues/40"},"comments":{"href":"https://api.github.com/repos/sarukuku/retris/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/sarukuku/retris/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/sarukuku/retris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sarukuku/retris/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/sarukuku/retris/statuses/49ee29e8bd48d61aa5f0129f7d5ca4d8fa7f3c42"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"szokodiakos"}}