{"action":"closed","number":15,"pull_request":{"url":"https://api.github.com/repos/dtinth/ttycast/pulls/15","id":54378689,"html_url":"https://github.com/dtinth/ttycast/pull/15","diff_url":"https://github.com/dtinth/ttycast/pull/15.diff","patch_url":"https://github.com/dtinth/ttycast/pull/15.patch","issue_url":"https://api.github.com/repos/dtinth/ttycast/issues/15","number":15,"state":"closed","locked":false,"title":"Only send terminal image to newly-connected client.","user":{"login":"smblott-github","id":2641335,"avatar_url":"https://avatars.githubusercontent.com/u/2641335?v=3","gravatar_id":"","url":"https://api.github.com/users/smblott-github","html_url":"https://github.com/smblott-github","followers_url":"https://api.github.com/users/smblott-github/followers","following_url":"https://api.github.com/users/smblott-github/following{/other_user}","gists_url":"https://api.github.com/users/smblott-github/gists{/gist_id}","starred_url":"https://api.github.com/users/smblott-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smblott-github/subscriptions","organizations_url":"https://api.github.com/users/smblott-github/orgs","repos_url":"https://api.github.com/users/smblott-github/repos","events_url":"https://api.github.com/users/smblott-github/events{/privacy}","received_events_url":"https://api.github.com/users/smblott-github/received_events","type":"User","site_admin":false},"body":"Previously, when a client connects, the current terminal image was refreshed in *all* clients.\r\n\r\nThat's `n*(n-1)` (or `O(n^2)`) messages to get n clients set up.\r\n\r\nHowever, there's no need to refresh existing clients.\r\n\r\n(My own use case involves about 50-100 clients, so this matters a bit.)","created_at":"2015-12-22T15:04:32Z","updated_at":"2015-12-22T15:55:30Z","closed_at":"2015-12-22T15:55:30Z","merged_at":"2015-12-22T15:55:30Z","merge_commit_sha":"399c0944f2beade1030b653316fb49283f109d75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dtinth/ttycast/pulls/15/commits","review_comments_url":"https://api.github.com/repos/dtinth/ttycast/pulls/15/comments","review_comment_url":"https://api.github.com/repos/dtinth/ttycast/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dtinth/ttycast/issues/15/comments","statuses_url":"https://api.github.com/repos/dtinth/ttycast/statuses/67fe0b38d00075538e37cb21b97891578126dc6a","head":{"label":"smblott-github:only-refresh-new-client","ref":"only-refresh-new-client","sha":"67fe0b38d00075538e37cb21b97891578126dc6a","user":{"login":"smblott-github","id":2641335,"avatar_url":"https://avatars.githubusercontent.com/u/2641335?v=3","gravatar_id":"","url":"https://api.github.com/users/smblott-github","html_url":"https://github.com/smblott-github","followers_url":"https://api.github.com/users/smblott-github/followers","following_url":"https://api.github.com/users/smblott-github/following{/other_user}","gists_url":"https://api.github.com/users/smblott-github/gists{/gist_id}","starred_url":"https://api.github.com/users/smblott-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smblott-github/subscriptions","organizations_url":"https://api.github.com/users/smblott-github/orgs","repos_url":"https://api.github.com/users/smblott-github/repos","events_url":"https://api.github.com/users/smblott-github/events{/privacy}","received_events_url":"https://api.github.com/users/smblott-github/received_events","type":"User","site_admin":false},"repo":{"id":48318213,"name":"ttycast","full_name":"smblott-github/ttycast","owner":{"login":"smblott-github","id":2641335,"avatar_url":"https://avatars.githubusercontent.com/u/2641335?v=3","gravatar_id":"","url":"https://api.github.com/users/smblott-github","html_url":"https://github.com/smblott-github","followers_url":"https://api.github.com/users/smblott-github/followers","following_url":"https://api.github.com/users/smblott-github/following{/other_user}","gists_url":"https://api.github.com/users/smblott-github/gists{/gist_id}","starred_url":"https://api.github.com/users/smblott-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smblott-github/subscriptions","organizations_url":"https://api.github.com/users/smblott-github/orgs","repos_url":"https://api.github.com/users/smblott-github/repos","events_url":"https://api.github.com/users/smblott-github/events{/privacy}","received_events_url":"https://api.github.com/users/smblott-github/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smblott-github/ttycast","description":"Broadcast your tty to the world! Stream your live terminal session online. Powered by ttyrec, tty.js and Socket.IO","fork":true,"url":"https://api.github.com/repos/smblott-github/ttycast","forks_url":"https://api.github.com/repos/smblott-github/ttycast/forks","keys_url":"https://api.github.com/repos/smblott-github/ttycast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smblott-github/ttycast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smblott-github/ttycast/teams","hooks_url":"https://api.github.com/repos/smblott-github/ttycast/hooks","issue_events_url":"https://api.github.com/repos/smblott-github/ttycast/issues/events{/number}","events_url":"https://api.github.com/repos/smblott-github/ttycast/events","assignees_url":"https://api.github.com/repos/smblott-github/ttycast/assignees{/user}","branches_url":"https://api.github.com/repos/smblott-github/ttycast/branches{/branch}","tags_url":"https://api.github.com/repos/smblott-github/ttycast/tags","blobs_url":"https://api.github.com/repos/smblott-github/ttycast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smblott-github/ttycast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smblott-github/ttycast/git/refs{/sha}","trees_url":"https://api.github.com/repos/smblott-github/ttycast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smblott-github/ttycast/statuses/{sha}","languages_url":"https://api.github.com/repos/smblott-github/ttycast/languages","stargazers_url":"https://api.github.com/repos/smblott-github/ttycast/stargazers","contributors_url":"https://api.github.com/repos/smblott-github/ttycast/contributors","subscribers_url":"https://api.github.com/repos/smblott-github/ttycast/subscribers","subscription_url":"https://api.github.com/repos/smblott-github/ttycast/subscription","commits_url":"https://api.github.com/repos/smblott-github/ttycast/commits{/sha}","git_commits_url":"https://api.github.com/repos/smblott-github/ttycast/git/commits{/sha}","comments_url":"https://api.github.com/repos/smblott-github/ttycast/comments{/number}","issue_comment_url":"https://api.github.com/repos/smblott-github/ttycast/issues/comments{/number}","contents_url":"https://api.github.com/repos/smblott-github/ttycast/contents/{+path}","compare_url":"https://api.github.com/repos/smblott-github/ttycast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smblott-github/ttycast/merges","archive_url":"https://api.github.com/repos/smblott-github/ttycast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smblott-github/ttycast/downloads","issues_url":"https://api.github.com/repos/smblott-github/ttycast/issues{/number}","pulls_url":"https://api.github.com/repos/smblott-github/ttycast/pulls{/number}","milestones_url":"https://api.github.com/repos/smblott-github/ttycast/milestones{/number}","notifications_url":"https://api.github.com/repos/smblott-github/ttycast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smblott-github/ttycast/labels{/name}","releases_url":"https://api.github.com/repos/smblott-github/ttycast/releases{/id}","created_at":"2015-12-20T11:48:38Z","updated_at":"2015-12-20T11:48:39Z","pushed_at":"2015-12-22T15:18:48Z","git_url":"git://github.com/smblott-github/ttycast.git","ssh_url":"git@github.com:smblott-github/ttycast.git","clone_url":"https://github.com/smblott-github/ttycast.git","svn_url":"https://github.com/smblott-github/ttycast","homepage":"http://me.dt.in.th/page/ttycast","size":99,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dtinth:master","ref":"master","sha":"62315515e6a97bcc47c8688fa868a9f37da17096","user":{"login":"dtinth","id":193136,"avatar_url":"https://avatars.githubusercontent.com/u/193136?v=3","gravatar_id":"","url":"https://api.github.com/users/dtinth","html_url":"https://github.com/dtinth","followers_url":"https://api.github.com/users/dtinth/followers","following_url":"https://api.github.com/users/dtinth/following{/other_user}","gists_url":"https://api.github.com/users/dtinth/gists{/gist_id}","starred_url":"https://api.github.com/users/dtinth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtinth/subscriptions","organizations_url":"https://api.github.com/users/dtinth/orgs","repos_url":"https://api.github.com/users/dtinth/repos","events_url":"https://api.github.com/users/dtinth/events{/privacy}","received_events_url":"https://api.github.com/users/dtinth/received_events","type":"User","site_admin":false},"repo":{"id":4928613,"name":"ttycast","full_name":"dtinth/ttycast","owner":{"login":"dtinth","id":193136,"avatar_url":"https://avatars.githubusercontent.com/u/193136?v=3","gravatar_id":"","url":"https://api.github.com/users/dtinth","html_url":"https://github.com/dtinth","followers_url":"https://api.github.com/users/dtinth/followers","following_url":"https://api.github.com/users/dtinth/following{/other_user}","gists_url":"https://api.github.com/users/dtinth/gists{/gist_id}","starred_url":"https://api.github.com/users/dtinth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtinth/subscriptions","organizations_url":"https://api.github.com/users/dtinth/orgs","repos_url":"https://api.github.com/users/dtinth/repos","events_url":"https://api.github.com/users/dtinth/events{/privacy}","received_events_url":"https://api.github.com/users/dtinth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dtinth/ttycast","description":"Broadcast your tty to the world! Stream your live terminal session online. Powered by ttyrec, tty.js and Socket.IO","fork":false,"url":"https://api.github.com/repos/dtinth/ttycast","forks_url":"https://api.github.com/repos/dtinth/ttycast/forks","keys_url":"https://api.github.com/repos/dtinth/ttycast/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dtinth/ttycast/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dtinth/ttycast/teams","hooks_url":"https://api.github.com/repos/dtinth/ttycast/hooks","issue_events_url":"https://api.github.com/repos/dtinth/ttycast/issues/events{/number}","events_url":"https://api.github.com/repos/dtinth/ttycast/events","assignees_url":"https://api.github.com/repos/dtinth/ttycast/assignees{/user}","branches_url":"https://api.github.com/repos/dtinth/ttycast/branches{/branch}","tags_url":"https://api.github.com/repos/dtinth/ttycast/tags","blobs_url":"https://api.github.com/repos/dtinth/ttycast/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dtinth/ttycast/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dtinth/ttycast/git/refs{/sha}","trees_url":"https://api.github.com/repos/dtinth/ttycast/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dtinth/ttycast/statuses/{sha}","languages_url":"https://api.github.com/repos/dtinth/ttycast/languages","stargazers_url":"https://api.github.com/repos/dtinth/ttycast/stargazers","contributors_url":"https://api.github.com/repos/dtinth/ttycast/contributors","subscribers_url":"https://api.github.com/repos/dtinth/ttycast/subscribers","subscription_url":"https://api.github.com/repos/dtinth/ttycast/subscription","commits_url":"https://api.github.com/repos/dtinth/ttycast/commits{/sha}","git_commits_url":"https://api.github.com/repos/dtinth/ttycast/git/commits{/sha}","comments_url":"https://api.github.com/repos/dtinth/ttycast/comments{/number}","issue_comment_url":"https://api.github.com/repos/dtinth/ttycast/issues/comments{/number}","contents_url":"https://api.github.com/repos/dtinth/ttycast/contents/{+path}","compare_url":"https://api.github.com/repos/dtinth/ttycast/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dtinth/ttycast/merges","archive_url":"https://api.github.com/repos/dtinth/ttycast/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dtinth/ttycast/downloads","issues_url":"https://api.github.com/repos/dtinth/ttycast/issues{/number}","pulls_url":"https://api.github.com/repos/dtinth/ttycast/pulls{/number}","milestones_url":"https://api.github.com/repos/dtinth/ttycast/milestones{/number}","notifications_url":"https://api.github.com/repos/dtinth/ttycast/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dtinth/ttycast/labels{/name}","releases_url":"https://api.github.com/repos/dtinth/ttycast/releases{/id}","created_at":"2012-07-06T17:38:21Z","updated_at":"2015-12-15T17:29:40Z","pushed_at":"2015-12-22T15:55:31Z","git_url":"git://github.com/dtinth/ttycast.git","ssh_url":"git@github.com:dtinth/ttycast.git","clone_url":"https://github.com/dtinth/ttycast.git","svn_url":"https://github.com/dtinth/ttycast","homepage":"http://me.dt.in.th/page/ttycast","size":114,"stargazers_count":238,"watchers_count":238,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":4,"forks":14,"open_issues":4,"watchers":238,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dtinth/ttycast/pulls/15"},"html":{"href":"https://github.com/dtinth/ttycast/pull/15"},"issue":{"href":"https://api.github.com/repos/dtinth/ttycast/issues/15"},"comments":{"href":"https://api.github.com/repos/dtinth/ttycast/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/dtinth/ttycast/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/dtinth/ttycast/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dtinth/ttycast/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/dtinth/ttycast/statuses/67fe0b38d00075538e37cb21b97891578126dc6a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dtinth","id":193136,"avatar_url":"https://avatars.githubusercontent.com/u/193136?v=3","gravatar_id":"","url":"https://api.github.com/users/dtinth","html_url":"https://github.com/dtinth","followers_url":"https://api.github.com/users/dtinth/followers","following_url":"https://api.github.com/users/dtinth/following{/other_user}","gists_url":"https://api.github.com/users/dtinth/gists{/gist_id}","starred_url":"https://api.github.com/users/dtinth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtinth/subscriptions","organizations_url":"https://api.github.com/users/dtinth/orgs","repos_url":"https://api.github.com/users/dtinth/repos","events_url":"https://api.github.com/users/dtinth/events{/privacy}","received_events_url":"https://api.github.com/users/dtinth/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}