{"action":"created","issue":{"url":"https://api.github.com/repos/dtinth/ttycast/issues/15","labels_url":"https://api.github.com/repos/dtinth/ttycast/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/dtinth/ttycast/issues/15/comments","events_url":"https://api.github.com/repos/dtinth/ttycast/issues/15/events","html_url":"https://github.com/dtinth/ttycast/pull/15","id":123496786,"number":15,"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-22T15:04:32Z","updated_at":"2015-12-22T15:55:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dtinth/ttycast/pulls/15","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"},"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.)"},"comment":{"url":"https://api.github.com/repos/dtinth/ttycast/issues/comments/166655006","html_url":"https://github.com/dtinth/ttycast/pull/15#issuecomment-166655006","issue_url":"https://api.github.com/repos/dtinth/ttycast/issues/15","id":166655006,"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},"created_at":"2015-12-22T15:55:20Z","updated_at":"2015-12-22T15:55:20Z","body":"Wow. What a silly mistake. Thanks for catching that :+1: "}}