{"action":"created","comment":{"url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/comments/41328547","id":41328547,"diff_hunk":"@@ -8,6 +8,9 @@ var cors = require('cors');\n var bodyParser = require('body-parser');\n var nodemailer = require('nodemailer');\n \n+var ioPort = Number(process.env.IOPORT || 3000);","path":"web.js","position":4,"original_position":4,"commit_id":"290444b25007d212b26c3fb5014ce0efbb934a8f","original_commit_id":"290444b25007d212b26c3fb5014ce0efbb934a8f","user":{"login":"camilleriluke","id":1117126,"avatar_url":"https://avatars.githubusercontent.com/u/1117126?v=3","gravatar_id":"","url":"https://api.github.com/users/camilleriluke","html_url":"https://github.com/camilleriluke","followers_url":"https://api.github.com/users/camilleriluke/followers","following_url":"https://api.github.com/users/camilleriluke/following{/other_user}","gists_url":"https://api.github.com/users/camilleriluke/gists{/gist_id}","starred_url":"https://api.github.com/users/camilleriluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camilleriluke/subscriptions","organizations_url":"https://api.github.com/users/camilleriluke/orgs","repos_url":"https://api.github.com/users/camilleriluke/repos","events_url":"https://api.github.com/users/camilleriluke/events{/privacy}","received_events_url":"https://api.github.com/users/camilleriluke/received_events","type":"User","site_admin":false},"body":"Might be useful http://socket.io/docs/","created_at":"2015-10-06T22:01:04Z","updated_at":"2015-10-06T22:01:04Z","html_url":"https://github.com/camilleriluke/ejja-ha-nieklu/pull/20#discussion_r41328547","pull_request_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/comments/41328547"},"html":{"href":"https://github.com/camilleriluke/ejja-ha-nieklu/pull/20#discussion_r41328547"},"pull_request":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20","id":46463125,"html_url":"https://github.com/camilleriluke/ejja-ha-nieklu/pull/20","diff_url":"https://github.com/camilleriluke/ejja-ha-nieklu/pull/20.diff","patch_url":"https://github.com/camilleriluke/ejja-ha-nieklu/pull/20.patch","issue_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues/20","number":20,"state":"open","locked":false,"title":"Added client notification popups for new/deleted orders.","user":{"login":"KPull","id":5477536,"avatar_url":"https://avatars.githubusercontent.com/u/5477536?v=3","gravatar_id":"","url":"https://api.github.com/users/KPull","html_url":"https://github.com/KPull","followers_url":"https://api.github.com/users/KPull/followers","following_url":"https://api.github.com/users/KPull/following{/other_user}","gists_url":"https://api.github.com/users/KPull/gists{/gist_id}","starred_url":"https://api.github.com/users/KPull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KPull/subscriptions","organizations_url":"https://api.github.com/users/KPull/orgs","repos_url":"https://api.github.com/users/KPull/repos","events_url":"https://api.github.com/users/KPull/events{/privacy}","received_events_url":"https://api.github.com/users/KPull/received_events","type":"User","site_admin":false},"body":"Added popup notifications when a new order is created/closed.\r\n\r\nNeed to configure:\r\nin web.js: set the environment variable called IOPORT which is the port number of websocket connections.\r\nin apiPrefix.js: set the URL for the websocket endpoint. Use the same port used for the IOPORT env variable above.","created_at":"2015-09-30T22:05:09Z","updated_at":"2015-10-06T22:01:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6888c588033c3175a332af9401b073f349215691","assignee":{"login":"camilleriluke","id":1117126,"avatar_url":"https://avatars.githubusercontent.com/u/1117126?v=3","gravatar_id":"","url":"https://api.github.com/users/camilleriluke","html_url":"https://github.com/camilleriluke","followers_url":"https://api.github.com/users/camilleriluke/followers","following_url":"https://api.github.com/users/camilleriluke/following{/other_user}","gists_url":"https://api.github.com/users/camilleriluke/gists{/gist_id}","starred_url":"https://api.github.com/users/camilleriluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camilleriluke/subscriptions","organizations_url":"https://api.github.com/users/camilleriluke/orgs","repos_url":"https://api.github.com/users/camilleriluke/repos","events_url":"https://api.github.com/users/camilleriluke/events{/privacy}","received_events_url":"https://api.github.com/users/camilleriluke/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20/commits","review_comments_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20/comments","review_comment_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues/20/comments","statuses_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/statuses/290444b25007d212b26c3fb5014ce0efbb934a8f","head":{"label":"KPull:feature/notifications","ref":"feature/notifications","sha":"290444b25007d212b26c3fb5014ce0efbb934a8f","user":{"login":"KPull","id":5477536,"avatar_url":"https://avatars.githubusercontent.com/u/5477536?v=3","gravatar_id":"","url":"https://api.github.com/users/KPull","html_url":"https://github.com/KPull","followers_url":"https://api.github.com/users/KPull/followers","following_url":"https://api.github.com/users/KPull/following{/other_user}","gists_url":"https://api.github.com/users/KPull/gists{/gist_id}","starred_url":"https://api.github.com/users/KPull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KPull/subscriptions","organizations_url":"https://api.github.com/users/KPull/orgs","repos_url":"https://api.github.com/users/KPull/repos","events_url":"https://api.github.com/users/KPull/events{/privacy}","received_events_url":"https://api.github.com/users/KPull/received_events","type":"User","site_admin":false},"repo":{"id":18778284,"name":"ejja-ha-nieklu","full_name":"KPull/ejja-ha-nieklu","owner":{"login":"KPull","id":5477536,"avatar_url":"https://avatars.githubusercontent.com/u/5477536?v=3","gravatar_id":"","url":"https://api.github.com/users/KPull","html_url":"https://github.com/KPull","followers_url":"https://api.github.com/users/KPull/followers","following_url":"https://api.github.com/users/KPull/following{/other_user}","gists_url":"https://api.github.com/users/KPull/gists{/gist_id}","starred_url":"https://api.github.com/users/KPull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KPull/subscriptions","organizations_url":"https://api.github.com/users/KPull/orgs","repos_url":"https://api.github.com/users/KPull/repos","events_url":"https://api.github.com/users/KPull/events{/privacy}","received_events_url":"https://api.github.com/users/KPull/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KPull/ejja-ha-nieklu","description":"","fork":true,"url":"https://api.github.com/repos/KPull/ejja-ha-nieklu","forks_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/forks","keys_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/teams","hooks_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/hooks","issue_events_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/issues/events{/number}","events_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/events","assignees_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/assignees{/user}","branches_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/branches{/branch}","tags_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/tags","blobs_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/git/refs{/sha}","trees_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/statuses/{sha}","languages_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/languages","stargazers_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/stargazers","contributors_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/contributors","subscribers_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/subscribers","subscription_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/subscription","commits_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/commits{/sha}","git_commits_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/git/commits{/sha}","comments_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/comments{/number}","issue_comment_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/issues/comments{/number}","contents_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/contents/{+path}","compare_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/merges","archive_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/downloads","issues_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/issues{/number}","pulls_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/pulls{/number}","milestones_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/milestones{/number}","notifications_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/labels{/name}","releases_url":"https://api.github.com/repos/KPull/ejja-ha-nieklu/releases{/id}","created_at":"2014-04-14T21:58:59Z","updated_at":"2015-09-28T17:18:14Z","pushed_at":"2015-10-04T16:49:45Z","git_url":"git://github.com/KPull/ejja-ha-nieklu.git","ssh_url":"git@github.com:KPull/ejja-ha-nieklu.git","clone_url":"https://github.com/KPull/ejja-ha-nieklu.git","svn_url":"https://github.com/KPull/ejja-ha-nieklu","homepage":null,"size":3349,"stargazers_count":0,"watchers_count":0,"language":"ApacheConf","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":"camilleriluke:master","ref":"master","sha":"705bbd2d62746b065ae54e3efa799f438b075dd5","user":{"login":"camilleriluke","id":1117126,"avatar_url":"https://avatars.githubusercontent.com/u/1117126?v=3","gravatar_id":"","url":"https://api.github.com/users/camilleriluke","html_url":"https://github.com/camilleriluke","followers_url":"https://api.github.com/users/camilleriluke/followers","following_url":"https://api.github.com/users/camilleriluke/following{/other_user}","gists_url":"https://api.github.com/users/camilleriluke/gists{/gist_id}","starred_url":"https://api.github.com/users/camilleriluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camilleriluke/subscriptions","organizations_url":"https://api.github.com/users/camilleriluke/orgs","repos_url":"https://api.github.com/users/camilleriluke/repos","events_url":"https://api.github.com/users/camilleriluke/events{/privacy}","received_events_url":"https://api.github.com/users/camilleriluke/received_events","type":"User","site_admin":false},"repo":{"id":18777109,"name":"ejja-ha-nieklu","full_name":"camilleriluke/ejja-ha-nieklu","owner":{"login":"camilleriluke","id":1117126,"avatar_url":"https://avatars.githubusercontent.com/u/1117126?v=3","gravatar_id":"","url":"https://api.github.com/users/camilleriluke","html_url":"https://github.com/camilleriluke","followers_url":"https://api.github.com/users/camilleriluke/followers","following_url":"https://api.github.com/users/camilleriluke/following{/other_user}","gists_url":"https://api.github.com/users/camilleriluke/gists{/gist_id}","starred_url":"https://api.github.com/users/camilleriluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camilleriluke/subscriptions","organizations_url":"https://api.github.com/users/camilleriluke/orgs","repos_url":"https://api.github.com/users/camilleriluke/repos","events_url":"https://api.github.com/users/camilleriluke/events{/privacy}","received_events_url":"https://api.github.com/users/camilleriluke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/camilleriluke/ejja-ha-nieklu","description":"","fork":false,"url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu","forks_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/forks","keys_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/teams","hooks_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/hooks","issue_events_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues/events{/number}","events_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/events","assignees_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/assignees{/user}","branches_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/branches{/branch}","tags_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/tags","blobs_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/git/refs{/sha}","trees_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/statuses/{sha}","languages_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/languages","stargazers_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/stargazers","contributors_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/contributors","subscribers_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/subscribers","subscription_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/subscription","commits_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/commits{/sha}","git_commits_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/git/commits{/sha}","comments_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/comments{/number}","issue_comment_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues/comments{/number}","contents_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/contents/{+path}","compare_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/merges","archive_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/downloads","issues_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues{/number}","pulls_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls{/number}","milestones_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/milestones{/number}","notifications_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/labels{/name}","releases_url":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/releases{/id}","created_at":"2014-04-14T21:17:57Z","updated_at":"2015-02-23T17:13:33Z","pushed_at":"2015-10-04T17:21:55Z","git_url":"git://github.com/camilleriluke/ejja-ha-nieklu.git","ssh_url":"git@github.com:camilleriluke/ejja-ha-nieklu.git","clone_url":"https://github.com/camilleriluke/ejja-ha-nieklu.git","svn_url":"https://github.com/camilleriluke/ejja-ha-nieklu","homepage":"http://ejja-ha-nieklu.herokuapp.com","size":3815,"stargazers_count":0,"watchers_count":0,"language":"ApacheConf","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20"},"html":{"href":"https://github.com/camilleriluke/ejja-ha-nieklu/pull/20"},"issue":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues/20"},"comments":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/camilleriluke/ejja-ha-nieklu/statuses/290444b25007d212b26c3fb5014ce0efbb934a8f"}}}}