{"action":"created","comment":{"url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments/27198824","id":27198824,"diff_hunk":"@@ -234,7 +260,21 @@ angular.module(\"Common\").factory(\"connectionFactory\",\n         return false;\n       },\n \n-      initialize: function () {}\n+      initialize: function () {},\n+\n+      subscribeUserRegistration: function () {\n+        var uri = jsonValue.socketUri.subscribeUserRegistration;\n+        if (subscriptions[uri] === undefined) {\n+          subscriptions[uri] = {};\n+        }\n+        instance.reconnectSocket().then(function () {\n+          if (subscriptions[uri].subscribe === undefined) {\n+            subscriptions[uri].subscribe = stompClient.stomp.subscribe(uri, function (response) {\n+              utils.sendNotification(jsonValue.notifications.userRegistrationCount, response.body);","path":"src/main/webapp/assets/modules/common/connection.fac.js","position":85,"original_position":85,"commit_id":"ea741686903ee5016c5c6a816ec205eea7324e4c","original_commit_id":"ea741686903ee5016c5c6a816ec205eea7324e4c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-03-26T09:45:59Z","updated_at":"2015-03-26T09:45:59Z","html_url":"https://github.com/chrisshayan/TechLooper/pull/200#discussion_r27198824","pull_request_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments/27198824"},"html":{"href":"https://github.com/chrisshayan/TechLooper/pull/200#discussion_r27198824"},"pull_request":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200","id":32001716,"html_url":"https://github.com/chrisshayan/TechLooper/pull/200","diff_url":"https://github.com/chrisshayan/TechLooper/pull/200.diff","patch_url":"https://github.com/chrisshayan/TechLooper/pull/200.patch","issue_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/200","number":200,"state":"open","locked":false,"title":"Please pull the latest code","user":{"login":"khoa-nd","id":1620282,"avatar_url":"https://avatars.githubusercontent.com/u/1620282?v=3","gravatar_id":"","url":"https://api.github.com/users/khoa-nd","html_url":"https://github.com/khoa-nd","followers_url":"https://api.github.com/users/khoa-nd/followers","following_url":"https://api.github.com/users/khoa-nd/following{/other_user}","gists_url":"https://api.github.com/users/khoa-nd/gists{/gist_id}","starred_url":"https://api.github.com/users/khoa-nd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoa-nd/subscriptions","organizations_url":"https://api.github.com/users/khoa-nd/orgs","repos_url":"https://api.github.com/users/khoa-nd/repos","events_url":"https://api.github.com/users/khoa-nd/events{/privacy}","received_events_url":"https://api.github.com/users/khoa-nd/received_events","type":"User","site_admin":false},"body":"- Change Vietnamese content for landing page\r\n- Fix some front-end issues","created_at":"2015-03-26T09:45:54Z","updated_at":"2015-03-26T09:45:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07eb93ec12893bc63204da1df9471c9195f9ea32","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200/commits","review_comments_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200/comments","review_comment_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/200/comments","statuses_url":"https://api.github.com/repos/chrisshayan/TechLooper/statuses/ea741686903ee5016c5c6a816ec205eea7324e4c","head":{"label":"khoa-nd:master","ref":"master","sha":"ea741686903ee5016c5c6a816ec205eea7324e4c","user":{"login":"khoa-nd","id":1620282,"avatar_url":"https://avatars.githubusercontent.com/u/1620282?v=3","gravatar_id":"","url":"https://api.github.com/users/khoa-nd","html_url":"https://github.com/khoa-nd","followers_url":"https://api.github.com/users/khoa-nd/followers","following_url":"https://api.github.com/users/khoa-nd/following{/other_user}","gists_url":"https://api.github.com/users/khoa-nd/gists{/gist_id}","starred_url":"https://api.github.com/users/khoa-nd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoa-nd/subscriptions","organizations_url":"https://api.github.com/users/khoa-nd/orgs","repos_url":"https://api.github.com/users/khoa-nd/repos","events_url":"https://api.github.com/users/khoa-nd/events{/privacy}","received_events_url":"https://api.github.com/users/khoa-nd/received_events","type":"User","site_admin":false},"repo":{"id":25450824,"name":"TechLooper","full_name":"khoa-nd/TechLooper","owner":{"login":"khoa-nd","id":1620282,"avatar_url":"https://avatars.githubusercontent.com/u/1620282?v=3","gravatar_id":"","url":"https://api.github.com/users/khoa-nd","html_url":"https://github.com/khoa-nd","followers_url":"https://api.github.com/users/khoa-nd/followers","following_url":"https://api.github.com/users/khoa-nd/following{/other_user}","gists_url":"https://api.github.com/users/khoa-nd/gists{/gist_id}","starred_url":"https://api.github.com/users/khoa-nd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoa-nd/subscriptions","organizations_url":"https://api.github.com/users/khoa-nd/orgs","repos_url":"https://api.github.com/users/khoa-nd/repos","events_url":"https://api.github.com/users/khoa-nd/events{/privacy}","received_events_url":"https://api.github.com/users/khoa-nd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khoa-nd/TechLooper","description":"This is VietnamWorks Open Source project. TechLooper is an aggregator which will detects the market demands and trends for IT jobs.","fork":true,"url":"https://api.github.com/repos/khoa-nd/TechLooper","forks_url":"https://api.github.com/repos/khoa-nd/TechLooper/forks","keys_url":"https://api.github.com/repos/khoa-nd/TechLooper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khoa-nd/TechLooper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khoa-nd/TechLooper/teams","hooks_url":"https://api.github.com/repos/khoa-nd/TechLooper/hooks","issue_events_url":"https://api.github.com/repos/khoa-nd/TechLooper/issues/events{/number}","events_url":"https://api.github.com/repos/khoa-nd/TechLooper/events","assignees_url":"https://api.github.com/repos/khoa-nd/TechLooper/assignees{/user}","branches_url":"https://api.github.com/repos/khoa-nd/TechLooper/branches{/branch}","tags_url":"https://api.github.com/repos/khoa-nd/TechLooper/tags","blobs_url":"https://api.github.com/repos/khoa-nd/TechLooper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khoa-nd/TechLooper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khoa-nd/TechLooper/git/refs{/sha}","trees_url":"https://api.github.com/repos/khoa-nd/TechLooper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khoa-nd/TechLooper/statuses/{sha}","languages_url":"https://api.github.com/repos/khoa-nd/TechLooper/languages","stargazers_url":"https://api.github.com/repos/khoa-nd/TechLooper/stargazers","contributors_url":"https://api.github.com/repos/khoa-nd/TechLooper/contributors","subscribers_url":"https://api.github.com/repos/khoa-nd/TechLooper/subscribers","subscription_url":"https://api.github.com/repos/khoa-nd/TechLooper/subscription","commits_url":"https://api.github.com/repos/khoa-nd/TechLooper/commits{/sha}","git_commits_url":"https://api.github.com/repos/khoa-nd/TechLooper/git/commits{/sha}","comments_url":"https://api.github.com/repos/khoa-nd/TechLooper/comments{/number}","issue_comment_url":"https://api.github.com/repos/khoa-nd/TechLooper/issues/comments{/number}","contents_url":"https://api.github.com/repos/khoa-nd/TechLooper/contents/{+path}","compare_url":"https://api.github.com/repos/khoa-nd/TechLooper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khoa-nd/TechLooper/merges","archive_url":"https://api.github.com/repos/khoa-nd/TechLooper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khoa-nd/TechLooper/downloads","issues_url":"https://api.github.com/repos/khoa-nd/TechLooper/issues{/number}","pulls_url":"https://api.github.com/repos/khoa-nd/TechLooper/pulls{/number}","milestones_url":"https://api.github.com/repos/khoa-nd/TechLooper/milestones{/number}","notifications_url":"https://api.github.com/repos/khoa-nd/TechLooper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khoa-nd/TechLooper/labels{/name}","releases_url":"https://api.github.com/repos/khoa-nd/TechLooper/releases{/id}","created_at":"2014-10-20T04:32:02Z","updated_at":"2015-03-26T09:44:03Z","pushed_at":"2015-03-26T09:44:03Z","git_url":"git://github.com/khoa-nd/TechLooper.git","ssh_url":"git@github.com:khoa-nd/TechLooper.git","clone_url":"https://github.com/khoa-nd/TechLooper.git","svn_url":"https://github.com/khoa-nd/TechLooper","homepage":null,"size":28220,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"chrisshayan:Release20","ref":"Release20","sha":"0d3b8279e148a73f5eb126996104f80de35dda69","user":{"login":"chrisshayan","id":4226119,"avatar_url":"https://avatars.githubusercontent.com/u/4226119?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisshayan","html_url":"https://github.com/chrisshayan","followers_url":"https://api.github.com/users/chrisshayan/followers","following_url":"https://api.github.com/users/chrisshayan/following{/other_user}","gists_url":"https://api.github.com/users/chrisshayan/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisshayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisshayan/subscriptions","organizations_url":"https://api.github.com/users/chrisshayan/orgs","repos_url":"https://api.github.com/users/chrisshayan/repos","events_url":"https://api.github.com/users/chrisshayan/events{/privacy}","received_events_url":"https://api.github.com/users/chrisshayan/received_events","type":"User","site_admin":false},"repo":{"id":21732596,"name":"TechLooper","full_name":"chrisshayan/TechLooper","owner":{"login":"chrisshayan","id":4226119,"avatar_url":"https://avatars.githubusercontent.com/u/4226119?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisshayan","html_url":"https://github.com/chrisshayan","followers_url":"https://api.github.com/users/chrisshayan/followers","following_url":"https://api.github.com/users/chrisshayan/following{/other_user}","gists_url":"https://api.github.com/users/chrisshayan/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisshayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisshayan/subscriptions","organizations_url":"https://api.github.com/users/chrisshayan/orgs","repos_url":"https://api.github.com/users/chrisshayan/repos","events_url":"https://api.github.com/users/chrisshayan/events{/privacy}","received_events_url":"https://api.github.com/users/chrisshayan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisshayan/TechLooper","description":"This is VietnamWorks Open Source project. TechLooper is an aggregator which will detects the market demands and trends for IT jobs.","fork":false,"url":"https://api.github.com/repos/chrisshayan/TechLooper","forks_url":"https://api.github.com/repos/chrisshayan/TechLooper/forks","keys_url":"https://api.github.com/repos/chrisshayan/TechLooper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisshayan/TechLooper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisshayan/TechLooper/teams","hooks_url":"https://api.github.com/repos/chrisshayan/TechLooper/hooks","issue_events_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/events{/number}","events_url":"https://api.github.com/repos/chrisshayan/TechLooper/events","assignees_url":"https://api.github.com/repos/chrisshayan/TechLooper/assignees{/user}","branches_url":"https://api.github.com/repos/chrisshayan/TechLooper/branches{/branch}","tags_url":"https://api.github.com/repos/chrisshayan/TechLooper/tags","blobs_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisshayan/TechLooper/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisshayan/TechLooper/languages","stargazers_url":"https://api.github.com/repos/chrisshayan/TechLooper/stargazers","contributors_url":"https://api.github.com/repos/chrisshayan/TechLooper/contributors","subscribers_url":"https://api.github.com/repos/chrisshayan/TechLooper/subscribers","subscription_url":"https://api.github.com/repos/chrisshayan/TechLooper/subscription","commits_url":"https://api.github.com/repos/chrisshayan/TechLooper/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisshayan/TechLooper/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisshayan/TechLooper/contents/{+path}","compare_url":"https://api.github.com/repos/chrisshayan/TechLooper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisshayan/TechLooper/merges","archive_url":"https://api.github.com/repos/chrisshayan/TechLooper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisshayan/TechLooper/downloads","issues_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues{/number}","pulls_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisshayan/TechLooper/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisshayan/TechLooper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisshayan/TechLooper/labels{/name}","releases_url":"https://api.github.com/repos/chrisshayan/TechLooper/releases{/id}","created_at":"2014-07-11T10:34:18Z","updated_at":"2015-03-14T16:50:04Z","pushed_at":"2015-03-26T09:45:55Z","git_url":"git://github.com/chrisshayan/TechLooper.git","ssh_url":"git@github.com:chrisshayan/TechLooper.git","clone_url":"https://github.com/chrisshayan/TechLooper.git","svn_url":"https://github.com/chrisshayan/TechLooper","homepage":null,"size":27349,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200"},"html":{"href":"https://github.com/chrisshayan/TechLooper/pull/200"},"issue":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/issues/200"},"comments":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/statuses/ea741686903ee5016c5c6a816ec205eea7324e4c"}}}}