{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/2","id":56194312,"html_url":"https://github.com/spotware/connect-nodejs-samples/pull/2","diff_url":"https://github.com/spotware/connect-nodejs-samples/pull/2.diff","patch_url":"https://github.com/spotware/connect-nodejs-samples/pull/2.patch","issue_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues/2","number":2,"state":"open","locked":false,"title":"Payloads cleanup","user":{"login":"madroneropaulo","id":4364107,"avatar_url":"https://avatars.githubusercontent.com/u/4364107?v=3","gravatar_id":"","url":"https://api.github.com/users/madroneropaulo","html_url":"https://github.com/madroneropaulo","followers_url":"https://api.github.com/users/madroneropaulo/followers","following_url":"https://api.github.com/users/madroneropaulo/following{/other_user}","gists_url":"https://api.github.com/users/madroneropaulo/gists{/gist_id}","starred_url":"https://api.github.com/users/madroneropaulo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madroneropaulo/subscriptions","organizations_url":"https://api.github.com/users/madroneropaulo/orgs","repos_url":"https://api.github.com/users/madroneropaulo/repos","events_url":"https://api.github.com/users/madroneropaulo/events{/privacy}","received_events_url":"https://api.github.com/users/madroneropaulo/received_events","type":"User","site_admin":false},"body":"Decouple messages payloads by name. Removed unnecessary cases (they can be viewed at payloadmap.js and used when needed). Added support for two parameters logTraffic and logData (they may be useful for better understanding of the communication).\r\nUsage:\r\n$ node app.js logTraffic => Logs the message name.\r\n$ node app.js logData => Logs the payload data.\r\n$ node app.js logData logTraffic => logs both.\r\n\r\n[recommended] Use with chrome debugger:\r\n$ npm install -g node-inspector\r\n\r\n$node-debug app.js logData logTraffic","created_at":"2016-01-15T17:00:29Z","updated_at":"2016-01-15T17:00:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/2/commits","review_comments_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/2/comments","review_comment_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues/2/comments","statuses_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/statuses/654c462becd00327c39bcc7ab24869d4090a1dcc","head":{"label":"madroneropaulo:master","ref":"master","sha":"654c462becd00327c39bcc7ab24869d4090a1dcc","user":{"login":"madroneropaulo","id":4364107,"avatar_url":"https://avatars.githubusercontent.com/u/4364107?v=3","gravatar_id":"","url":"https://api.github.com/users/madroneropaulo","html_url":"https://github.com/madroneropaulo","followers_url":"https://api.github.com/users/madroneropaulo/followers","following_url":"https://api.github.com/users/madroneropaulo/following{/other_user}","gists_url":"https://api.github.com/users/madroneropaulo/gists{/gist_id}","starred_url":"https://api.github.com/users/madroneropaulo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madroneropaulo/subscriptions","organizations_url":"https://api.github.com/users/madroneropaulo/orgs","repos_url":"https://api.github.com/users/madroneropaulo/repos","events_url":"https://api.github.com/users/madroneropaulo/events{/privacy}","received_events_url":"https://api.github.com/users/madroneropaulo/received_events","type":"User","site_admin":false},"repo":{"id":49571388,"name":"connect-nodejs-samples","full_name":"madroneropaulo/connect-nodejs-samples","owner":{"login":"madroneropaulo","id":4364107,"avatar_url":"https://avatars.githubusercontent.com/u/4364107?v=3","gravatar_id":"","url":"https://api.github.com/users/madroneropaulo","html_url":"https://github.com/madroneropaulo","followers_url":"https://api.github.com/users/madroneropaulo/followers","following_url":"https://api.github.com/users/madroneropaulo/following{/other_user}","gists_url":"https://api.github.com/users/madroneropaulo/gists{/gist_id}","starred_url":"https://api.github.com/users/madroneropaulo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madroneropaulo/subscriptions","organizations_url":"https://api.github.com/users/madroneropaulo/orgs","repos_url":"https://api.github.com/users/madroneropaulo/repos","events_url":"https://api.github.com/users/madroneropaulo/events{/privacy}","received_events_url":"https://api.github.com/users/madroneropaulo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madroneropaulo/connect-nodejs-samples","description":"Samples of using Connect Open API in JavaScript and Node.js","fork":true,"url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples","forks_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/forks","keys_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/teams","hooks_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/hooks","issue_events_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/events","assignees_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/tags","blobs_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/languages","stargazers_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/stargazers","contributors_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/contributors","subscribers_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/subscribers","subscription_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/subscription","commits_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/merges","archive_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/downloads","issues_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/labels{/name}","releases_url":"https://api.github.com/repos/madroneropaulo/connect-nodejs-samples/releases{/id}","created_at":"2016-01-13T12:06:53Z","updated_at":"2016-01-13T12:06:54Z","pushed_at":"2016-01-15T16:51:11Z","git_url":"git://github.com/madroneropaulo/connect-nodejs-samples.git","ssh_url":"git@github.com:madroneropaulo/connect-nodejs-samples.git","clone_url":"https://github.com/madroneropaulo/connect-nodejs-samples.git","svn_url":"https://github.com/madroneropaulo/connect-nodejs-samples","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Protocol Buffer","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":"spotware:master","ref":"master","sha":"3d174e5c4166604147cf848816e146b0b468fecd","user":{"login":"spotware","id":1419336,"avatar_url":"https://avatars.githubusercontent.com/u/1419336?v=3","gravatar_id":"","url":"https://api.github.com/users/spotware","html_url":"https://github.com/spotware","followers_url":"https://api.github.com/users/spotware/followers","following_url":"https://api.github.com/users/spotware/following{/other_user}","gists_url":"https://api.github.com/users/spotware/gists{/gist_id}","starred_url":"https://api.github.com/users/spotware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spotware/subscriptions","organizations_url":"https://api.github.com/users/spotware/orgs","repos_url":"https://api.github.com/users/spotware/repos","events_url":"https://api.github.com/users/spotware/events{/privacy}","received_events_url":"https://api.github.com/users/spotware/received_events","type":"User","site_admin":false},"repo":{"id":48454386,"name":"connect-nodejs-samples","full_name":"spotware/connect-nodejs-samples","owner":{"login":"spotware","id":1419336,"avatar_url":"https://avatars.githubusercontent.com/u/1419336?v=3","gravatar_id":"","url":"https://api.github.com/users/spotware","html_url":"https://github.com/spotware","followers_url":"https://api.github.com/users/spotware/followers","following_url":"https://api.github.com/users/spotware/following{/other_user}","gists_url":"https://api.github.com/users/spotware/gists{/gist_id}","starred_url":"https://api.github.com/users/spotware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spotware/subscriptions","organizations_url":"https://api.github.com/users/spotware/orgs","repos_url":"https://api.github.com/users/spotware/repos","events_url":"https://api.github.com/users/spotware/events{/privacy}","received_events_url":"https://api.github.com/users/spotware/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spotware/connect-nodejs-samples","description":"Samples of using Connect Open API in JavaScript and Node.js","fork":false,"url":"https://api.github.com/repos/spotware/connect-nodejs-samples","forks_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/forks","keys_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/teams","hooks_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/hooks","issue_events_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/events","assignees_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/tags","blobs_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/languages","stargazers_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/stargazers","contributors_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/contributors","subscribers_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/subscribers","subscription_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/subscription","commits_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/merges","archive_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/downloads","issues_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/labels{/name}","releases_url":"https://api.github.com/repos/spotware/connect-nodejs-samples/releases{/id}","created_at":"2015-12-22T21:18:20Z","updated_at":"2016-01-13T12:09:49Z","pushed_at":"2015-12-25T08:17:40Z","git_url":"git://github.com/spotware/connect-nodejs-samples.git","ssh_url":"git@github.com:spotware/connect-nodejs-samples.git","clone_url":"https://github.com/spotware/connect-nodejs-samples.git","svn_url":"https://github.com/spotware/connect-nodejs-samples","homepage":null,"size":20,"stargazers_count":2,"watchers_count":2,"language":"Protocol Buffer","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/2"},"html":{"href":"https://github.com/spotware/connect-nodejs-samples/pull/2"},"issue":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues/2"},"comments":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/spotware/connect-nodejs-samples/statuses/654c462becd00327c39bcc7ab24869d4090a1dcc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":57,"deletions":84,"changed_files":3}}