{"action":"created","comment":{"url":"https://api.github.com/repos/heroku/busl/pulls/comments/24616444","id":24616444,"diff_hunk":"@@ -0,0 +1,91 @@\n+package sse\n+\n+import (\n+\t\"testing\"\n+)\n+\n+var (\n+\tinput = []string{\n+\t\t\"hello\",\n+\t\t\"world\",\n+\t\t\"!\",\n+\t\t\"hello\\nworld\",\n+\t\t\"hello\\n\\nworld\",\n+\t}\n+\n+\toutput = []string{\n+\t\t\"id: 0\\ndata: hello\\n\\n\",","path":"sse/sse_test.go","position":17,"original_position":17,"commit_id":"365381d61134fdf11c725ff40ddee8a92c8d9c4c","original_commit_id":"365381d61134fdf11c725ff40ddee8a92c8d9c4c","user":{"login":"tt","id":19824,"avatar_url":"https://avatars.githubusercontent.com/u/19824?v=3","gravatar_id":"","url":"https://api.github.com/users/tt","html_url":"https://github.com/tt","followers_url":"https://api.github.com/users/tt/followers","following_url":"https://api.github.com/users/tt/following{/other_user}","gists_url":"https://api.github.com/users/tt/gists{/gist_id}","starred_url":"https://api.github.com/users/tt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tt/subscriptions","organizations_url":"https://api.github.com/users/tt/orgs","repos_url":"https://api.github.com/users/tt/repos","events_url":"https://api.github.com/users/tt/events{/privacy}","received_events_url":"https://api.github.com/users/tt/received_events","type":"User","site_admin":false},"body":"This is incorrect. The ID should match the offset after the data is received or a reconnect will result in the consumer receiving this chunk again.","created_at":"2015-02-12T20:20:28Z","updated_at":"2015-02-12T20:20:28Z","html_url":"https://github.com/heroku/busl/pull/29#discussion_r24616444","pull_request_url":"https://api.github.com/repos/heroku/busl/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/heroku/busl/pulls/comments/24616444"},"html":{"href":"https://github.com/heroku/busl/pull/29#discussion_r24616444"},"pull_request":{"href":"https://api.github.com/repos/heroku/busl/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/heroku/busl/pulls/29","id":29211606,"html_url":"https://github.com/heroku/busl/pull/29","diff_url":"https://github.com/heroku/busl/pull/29.diff","patch_url":"https://github.com/heroku/busl/pull/29.patch","issue_url":"https://api.github.com/repos/heroku/busl/issues/29","number":29,"state":"open","locked":false,"title":"Initial spike for sse.Stream idea","user":{"login":"cyx","id":2257,"avatar_url":"https://avatars.githubusercontent.com/u/2257?v=3","gravatar_id":"","url":"https://api.github.com/users/cyx","html_url":"https://github.com/cyx","followers_url":"https://api.github.com/users/cyx/followers","following_url":"https://api.github.com/users/cyx/following{/other_user}","gists_url":"https://api.github.com/users/cyx/gists{/gist_id}","starred_url":"https://api.github.com/users/cyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyx/subscriptions","organizations_url":"https://api.github.com/users/cyx/orgs","repos_url":"https://api.github.com/users/cyx/repos","events_url":"https://api.github.com/users/cyx/events{/privacy}","received_events_url":"https://api.github.com/users/cyx/received_events","type":"User","site_admin":false},"body":"Was looking at using an existing eventSource library,\r\nbut nothing seemed to fit (at least in my view).","created_at":"2015-02-12T20:08:19Z","updated_at":"2015-02-12T20:20:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a429bd8e14a6ab2a6e60700aca1d46d84622dcee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/heroku/busl/pulls/29/commits","review_comments_url":"https://api.github.com/repos/heroku/busl/pulls/29/comments","review_comment_url":"https://api.github.com/repos/heroku/busl/pulls/comments/{number}","comments_url":"https://api.github.com/repos/heroku/busl/issues/29/comments","statuses_url":"https://api.github.com/repos/heroku/busl/statuses/365381d61134fdf11c725ff40ddee8a92c8d9c4c","head":{"label":"heroku:sse","ref":"sse","sha":"365381d61134fdf11c725ff40ddee8a92c8d9c4c","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":20514785,"name":"busl","full_name":"heroku/busl","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/busl","description":"a simple pubsub service that runs on Heroku","fork":false,"url":"https://api.github.com/repos/heroku/busl","forks_url":"https://api.github.com/repos/heroku/busl/forks","keys_url":"https://api.github.com/repos/heroku/busl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/busl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/busl/teams","hooks_url":"https://api.github.com/repos/heroku/busl/hooks","issue_events_url":"https://api.github.com/repos/heroku/busl/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/busl/events","assignees_url":"https://api.github.com/repos/heroku/busl/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/busl/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/busl/tags","blobs_url":"https://api.github.com/repos/heroku/busl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/busl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/busl/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/busl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/busl/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/busl/languages","stargazers_url":"https://api.github.com/repos/heroku/busl/stargazers","contributors_url":"https://api.github.com/repos/heroku/busl/contributors","subscribers_url":"https://api.github.com/repos/heroku/busl/subscribers","subscription_url":"https://api.github.com/repos/heroku/busl/subscription","commits_url":"https://api.github.com/repos/heroku/busl/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/busl/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/busl/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/busl/issues/comments/{number}","contents_url":"https://api.github.com/repos/heroku/busl/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/busl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/busl/merges","archive_url":"https://api.github.com/repos/heroku/busl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/busl/downloads","issues_url":"https://api.github.com/repos/heroku/busl/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/busl/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/busl/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/busl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/busl/labels{/name}","releases_url":"https://api.github.com/repos/heroku/busl/releases{/id}","created_at":"2014-06-05T06:47:54Z","updated_at":"2015-02-11T23:19:12Z","pushed_at":"2015-02-12T20:15:44Z","git_url":"git://github.com/heroku/busl.git","ssh_url":"git@github.com:heroku/busl.git","clone_url":"https://github.com/heroku/busl.git","svn_url":"https://github.com/heroku/busl","homepage":"","size":1274,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":12,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"4acebe555687951ee1924e7e5ce149de2c9738dc","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":20514785,"name":"busl","full_name":"heroku/busl","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/busl","description":"a simple pubsub service that runs on Heroku","fork":false,"url":"https://api.github.com/repos/heroku/busl","forks_url":"https://api.github.com/repos/heroku/busl/forks","keys_url":"https://api.github.com/repos/heroku/busl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/busl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/busl/teams","hooks_url":"https://api.github.com/repos/heroku/busl/hooks","issue_events_url":"https://api.github.com/repos/heroku/busl/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/busl/events","assignees_url":"https://api.github.com/repos/heroku/busl/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/busl/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/busl/tags","blobs_url":"https://api.github.com/repos/heroku/busl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/busl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/busl/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/busl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/busl/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/busl/languages","stargazers_url":"https://api.github.com/repos/heroku/busl/stargazers","contributors_url":"https://api.github.com/repos/heroku/busl/contributors","subscribers_url":"https://api.github.com/repos/heroku/busl/subscribers","subscription_url":"https://api.github.com/repos/heroku/busl/subscription","commits_url":"https://api.github.com/repos/heroku/busl/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/busl/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/busl/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/busl/issues/comments/{number}","contents_url":"https://api.github.com/repos/heroku/busl/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/busl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/busl/merges","archive_url":"https://api.github.com/repos/heroku/busl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/busl/downloads","issues_url":"https://api.github.com/repos/heroku/busl/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/busl/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/busl/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/busl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/busl/labels{/name}","releases_url":"https://api.github.com/repos/heroku/busl/releases{/id}","created_at":"2014-06-05T06:47:54Z","updated_at":"2015-02-11T23:19:12Z","pushed_at":"2015-02-12T20:15:44Z","git_url":"git://github.com/heroku/busl.git","ssh_url":"git@github.com:heroku/busl.git","clone_url":"https://github.com/heroku/busl.git","svn_url":"https://github.com/heroku/busl","homepage":"","size":1274,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/busl/pulls/29"},"html":{"href":"https://github.com/heroku/busl/pull/29"},"issue":{"href":"https://api.github.com/repos/heroku/busl/issues/29"},"comments":{"href":"https://api.github.com/repos/heroku/busl/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/busl/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/busl/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/heroku/busl/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/busl/statuses/365381d61134fdf11c725ff40ddee8a92c8d9c4c"}}}}