{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/8","id":70961969,"html_url":"https://github.com/hybridgroup/cylon-mqtt/pull/8","diff_url":"https://github.com/hybridgroup/cylon-mqtt/pull/8.diff","patch_url":"https://github.com/hybridgroup/cylon-mqtt/pull/8.patch","issue_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues/8","number":8,"state":"open","locked":false,"title":"Resubscribe adaptor on reconnection","user":{"login":"mortenf","id":400721,"avatar_url":"https://avatars.githubusercontent.com/u/400721?v=3","gravatar_id":"","url":"https://api.github.com/users/mortenf","html_url":"https://github.com/mortenf","followers_url":"https://api.github.com/users/mortenf/followers","following_url":"https://api.github.com/users/mortenf/following{/other_user}","gists_url":"https://api.github.com/users/mortenf/gists{/gist_id}","starred_url":"https://api.github.com/users/mortenf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortenf/subscriptions","organizations_url":"https://api.github.com/users/mortenf/orgs","repos_url":"https://api.github.com/users/mortenf/repos","events_url":"https://api.github.com/users/mortenf/events{/privacy}","received_events_url":"https://api.github.com/users/mortenf/received_events","type":"User","site_admin":false},"body":"While the underlying MQTT.js module handles reconnects, subscriptions are lost in case of a broker disconnect.\r\n\r\nThis change resubscribes the adaptor on reconnect, by maintaining a list of subscriptions.\r\n\r\n(I don't use the driver interface, so can't test changes in that part.)","created_at":"2016-05-21T22:21:19Z","updated_at":"2016-05-21T22:21:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/8/commits","review_comments_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/8/comments","review_comment_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues/8/comments","statuses_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/statuses/96b851e04b2e16c08d778e12444234597e5bebef","head":{"label":"mortenf:master","ref":"master","sha":"96b851e04b2e16c08d778e12444234597e5bebef","user":{"login":"mortenf","id":400721,"avatar_url":"https://avatars.githubusercontent.com/u/400721?v=3","gravatar_id":"","url":"https://api.github.com/users/mortenf","html_url":"https://github.com/mortenf","followers_url":"https://api.github.com/users/mortenf/followers","following_url":"https://api.github.com/users/mortenf/following{/other_user}","gists_url":"https://api.github.com/users/mortenf/gists{/gist_id}","starred_url":"https://api.github.com/users/mortenf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortenf/subscriptions","organizations_url":"https://api.github.com/users/mortenf/orgs","repos_url":"https://api.github.com/users/mortenf/repos","events_url":"https://api.github.com/users/mortenf/events{/privacy}","received_events_url":"https://api.github.com/users/mortenf/received_events","type":"User","site_admin":false},"repo":{"id":38745587,"name":"cylon-mqtt","full_name":"mortenf/cylon-mqtt","owner":{"login":"mortenf","id":400721,"avatar_url":"https://avatars.githubusercontent.com/u/400721?v=3","gravatar_id":"","url":"https://api.github.com/users/mortenf","html_url":"https://github.com/mortenf","followers_url":"https://api.github.com/users/mortenf/followers","following_url":"https://api.github.com/users/mortenf/following{/other_user}","gists_url":"https://api.github.com/users/mortenf/gists{/gist_id}","starred_url":"https://api.github.com/users/mortenf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mortenf/subscriptions","organizations_url":"https://api.github.com/users/mortenf/orgs","repos_url":"https://api.github.com/users/mortenf/repos","events_url":"https://api.github.com/users/mortenf/events{/privacy}","received_events_url":"https://api.github.com/users/mortenf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mortenf/cylon-mqtt","description":"Cylon.js adaptor/driver for MQTT protocol","fork":true,"url":"https://api.github.com/repos/mortenf/cylon-mqtt","forks_url":"https://api.github.com/repos/mortenf/cylon-mqtt/forks","keys_url":"https://api.github.com/repos/mortenf/cylon-mqtt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mortenf/cylon-mqtt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mortenf/cylon-mqtt/teams","hooks_url":"https://api.github.com/repos/mortenf/cylon-mqtt/hooks","issue_events_url":"https://api.github.com/repos/mortenf/cylon-mqtt/issues/events{/number}","events_url":"https://api.github.com/repos/mortenf/cylon-mqtt/events","assignees_url":"https://api.github.com/repos/mortenf/cylon-mqtt/assignees{/user}","branches_url":"https://api.github.com/repos/mortenf/cylon-mqtt/branches{/branch}","tags_url":"https://api.github.com/repos/mortenf/cylon-mqtt/tags","blobs_url":"https://api.github.com/repos/mortenf/cylon-mqtt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mortenf/cylon-mqtt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mortenf/cylon-mqtt/git/refs{/sha}","trees_url":"https://api.github.com/repos/mortenf/cylon-mqtt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mortenf/cylon-mqtt/statuses/{sha}","languages_url":"https://api.github.com/repos/mortenf/cylon-mqtt/languages","stargazers_url":"https://api.github.com/repos/mortenf/cylon-mqtt/stargazers","contributors_url":"https://api.github.com/repos/mortenf/cylon-mqtt/contributors","subscribers_url":"https://api.github.com/repos/mortenf/cylon-mqtt/subscribers","subscription_url":"https://api.github.com/repos/mortenf/cylon-mqtt/subscription","commits_url":"https://api.github.com/repos/mortenf/cylon-mqtt/commits{/sha}","git_commits_url":"https://api.github.com/repos/mortenf/cylon-mqtt/git/commits{/sha}","comments_url":"https://api.github.com/repos/mortenf/cylon-mqtt/comments{/number}","issue_comment_url":"https://api.github.com/repos/mortenf/cylon-mqtt/issues/comments{/number}","contents_url":"https://api.github.com/repos/mortenf/cylon-mqtt/contents/{+path}","compare_url":"https://api.github.com/repos/mortenf/cylon-mqtt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mortenf/cylon-mqtt/merges","archive_url":"https://api.github.com/repos/mortenf/cylon-mqtt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mortenf/cylon-mqtt/downloads","issues_url":"https://api.github.com/repos/mortenf/cylon-mqtt/issues{/number}","pulls_url":"https://api.github.com/repos/mortenf/cylon-mqtt/pulls{/number}","milestones_url":"https://api.github.com/repos/mortenf/cylon-mqtt/milestones{/number}","notifications_url":"https://api.github.com/repos/mortenf/cylon-mqtt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mortenf/cylon-mqtt/labels{/name}","releases_url":"https://api.github.com/repos/mortenf/cylon-mqtt/releases{/id}","deployments_url":"https://api.github.com/repos/mortenf/cylon-mqtt/deployments","created_at":"2015-07-08T09:46:28Z","updated_at":"2016-05-21T21:10:43Z","pushed_at":"2016-05-21T22:17:37Z","git_url":"git://github.com/mortenf/cylon-mqtt.git","ssh_url":"git@github.com:mortenf/cylon-mqtt.git","clone_url":"https://github.com/mortenf/cylon-mqtt.git","svn_url":"https://github.com/mortenf/cylon-mqtt","homepage":"http://cylonjs.com","size":47,"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":"hybridgroup:master","ref":"master","sha":"725dfb29a7154992519b4b38aed0dba03d6265ab","user":{"login":"hybridgroup","id":212109,"avatar_url":"https://avatars.githubusercontent.com/u/212109?v=3","gravatar_id":"","url":"https://api.github.com/users/hybridgroup","html_url":"https://github.com/hybridgroup","followers_url":"https://api.github.com/users/hybridgroup/followers","following_url":"https://api.github.com/users/hybridgroup/following{/other_user}","gists_url":"https://api.github.com/users/hybridgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/hybridgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hybridgroup/subscriptions","organizations_url":"https://api.github.com/users/hybridgroup/orgs","repos_url":"https://api.github.com/users/hybridgroup/repos","events_url":"https://api.github.com/users/hybridgroup/events{/privacy}","received_events_url":"https://api.github.com/users/hybridgroup/received_events","type":"Organization","site_admin":false},"repo":{"id":25725427,"name":"cylon-mqtt","full_name":"hybridgroup/cylon-mqtt","owner":{"login":"hybridgroup","id":212109,"avatar_url":"https://avatars.githubusercontent.com/u/212109?v=3","gravatar_id":"","url":"https://api.github.com/users/hybridgroup","html_url":"https://github.com/hybridgroup","followers_url":"https://api.github.com/users/hybridgroup/followers","following_url":"https://api.github.com/users/hybridgroup/following{/other_user}","gists_url":"https://api.github.com/users/hybridgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/hybridgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hybridgroup/subscriptions","organizations_url":"https://api.github.com/users/hybridgroup/orgs","repos_url":"https://api.github.com/users/hybridgroup/repos","events_url":"https://api.github.com/users/hybridgroup/events{/privacy}","received_events_url":"https://api.github.com/users/hybridgroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hybridgroup/cylon-mqtt","description":"Cylon.js adaptor/driver for MQTT protocol","fork":false,"url":"https://api.github.com/repos/hybridgroup/cylon-mqtt","forks_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/forks","keys_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/teams","hooks_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/hooks","issue_events_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues/events{/number}","events_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/events","assignees_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/assignees{/user}","branches_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/branches{/branch}","tags_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/tags","blobs_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/git/refs{/sha}","trees_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/statuses/{sha}","languages_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/languages","stargazers_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/stargazers","contributors_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/contributors","subscribers_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/subscribers","subscription_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/subscription","commits_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/commits{/sha}","git_commits_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/git/commits{/sha}","comments_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/comments{/number}","issue_comment_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues/comments{/number}","contents_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/contents/{+path}","compare_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/merges","archive_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/downloads","issues_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues{/number}","pulls_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls{/number}","milestones_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/milestones{/number}","notifications_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/labels{/name}","releases_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/releases{/id}","deployments_url":"https://api.github.com/repos/hybridgroup/cylon-mqtt/deployments","created_at":"2014-10-25T08:45:11Z","updated_at":"2016-01-15T01:37:04Z","pushed_at":"2016-05-21T22:21:19Z","git_url":"git://github.com/hybridgroup/cylon-mqtt.git","ssh_url":"git@github.com:hybridgroup/cylon-mqtt.git","clone_url":"https://github.com/hybridgroup/cylon-mqtt.git","svn_url":"https://github.com/hybridgroup/cylon-mqtt","homepage":"http://cylonjs.com","size":48,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/8"},"html":{"href":"https://github.com/hybridgroup/cylon-mqtt/pull/8"},"issue":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues/8"},"comments":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/hybridgroup/cylon-mqtt/statuses/96b851e04b2e16c08d778e12444234597e5bebef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"mortenf"}}