{"action":"created","comment":{"url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/comments/188865315","pull_request_review_id":120925501,"id":188865315,"diff_hunk":"@@ -0,0 +1,42 @@\n+'use strict';\n+\n+const { mainqueue, clientsqueue } = require('./queue.js');\n+\n+let clientname;\n+\n+const isEmpty = (array) => {\n+  let counter = 0;\n+  array.forEach((el, id, arr) => {\n+    if (arr[id].length === 0) counter++;\n+  });\n+  if (array.length === counter) return true;\n+  else return false;\n+};\n+\n+const queuePush = (clientsData) => {","path":"balancer.js","position":16,"original_position":16,"commit_id":"e10fada3c65c879b92b99f9335b31da830a78f0a","original_commit_id":"e10fada3c65c879b92b99f9335b31da830a78f0a","user":{"login":"tshemsedinov","id":4405297,"avatar_url":"https://avatars2.githubusercontent.com/u/4405297?v=4","gravatar_id":"","url":"https://api.github.com/users/tshemsedinov","html_url":"https://github.com/tshemsedinov","followers_url":"https://api.github.com/users/tshemsedinov/followers","following_url":"https://api.github.com/users/tshemsedinov/following{/other_user}","gists_url":"https://api.github.com/users/tshemsedinov/gists{/gist_id}","starred_url":"https://api.github.com/users/tshemsedinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshemsedinov/subscriptions","organizations_url":"https://api.github.com/users/tshemsedinov/orgs","repos_url":"https://api.github.com/users/tshemsedinov/repos","events_url":"https://api.github.com/users/tshemsedinov/events{/privacy}","received_events_url":"https://api.github.com/users/tshemsedinov/received_events","type":"User","site_admin":false},"body":"`clientData`","created_at":"2018-05-17T07:45:20Z","updated_at":"2018-05-17T07:56:14Z","html_url":"https://github.com/HowProgrammingWorks/LiveCoding/pull/11#discussion_r188865315","pull_request_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/comments/188865315"},"html":{"href":"https://github.com/HowProgrammingWorks/LiveCoding/pull/11#discussion_r188865315"},"pull_request":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11","id":185682405,"html_url":"https://github.com/HowProgrammingWorks/LiveCoding/pull/11","diff_url":"https://github.com/HowProgrammingWorks/LiveCoding/pull/11.diff","patch_url":"https://github.com/HowProgrammingWorks/LiveCoding/pull/11.patch","issue_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues/11","number":11,"state":"open","locked":false,"title":"Balancer","user":{"login":"KHYehor","id":31667493,"avatar_url":"https://avatars3.githubusercontent.com/u/31667493?v=4","gravatar_id":"","url":"https://api.github.com/users/KHYehor","html_url":"https://github.com/KHYehor","followers_url":"https://api.github.com/users/KHYehor/followers","following_url":"https://api.github.com/users/KHYehor/following{/other_user}","gists_url":"https://api.github.com/users/KHYehor/gists{/gist_id}","starred_url":"https://api.github.com/users/KHYehor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KHYehor/subscriptions","organizations_url":"https://api.github.com/users/KHYehor/orgs","repos_url":"https://api.github.com/users/KHYehor/repos","events_url":"https://api.github.com/users/KHYehor/events{/privacy}","received_events_url":"https://api.github.com/users/KHYehor/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-03T11:06:45Z","updated_at":"2018-05-17T07:56:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f79e659a09689d806ed28370719a06336c6467b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11/commits","review_comments_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11/comments","review_comment_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues/11/comments","statuses_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/statuses/e10fada3c65c879b92b99f9335b31da830a78f0a","head":{"label":"KHYehor:balancer","ref":"balancer","sha":"e10fada3c65c879b92b99f9335b31da830a78f0a","user":{"login":"KHYehor","id":31667493,"avatar_url":"https://avatars3.githubusercontent.com/u/31667493?v=4","gravatar_id":"","url":"https://api.github.com/users/KHYehor","html_url":"https://github.com/KHYehor","followers_url":"https://api.github.com/users/KHYehor/followers","following_url":"https://api.github.com/users/KHYehor/following{/other_user}","gists_url":"https://api.github.com/users/KHYehor/gists{/gist_id}","starred_url":"https://api.github.com/users/KHYehor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KHYehor/subscriptions","organizations_url":"https://api.github.com/users/KHYehor/orgs","repos_url":"https://api.github.com/users/KHYehor/repos","events_url":"https://api.github.com/users/KHYehor/events{/privacy}","received_events_url":"https://api.github.com/users/KHYehor/received_events","type":"User","site_admin":false},"repo":{"id":131982279,"name":"LiveCoding","full_name":"KHYehor/LiveCoding","owner":{"login":"KHYehor","id":31667493,"avatar_url":"https://avatars3.githubusercontent.com/u/31667493?v=4","gravatar_id":"","url":"https://api.github.com/users/KHYehor","html_url":"https://github.com/KHYehor","followers_url":"https://api.github.com/users/KHYehor/followers","following_url":"https://api.github.com/users/KHYehor/following{/other_user}","gists_url":"https://api.github.com/users/KHYehor/gists{/gist_id}","starred_url":"https://api.github.com/users/KHYehor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KHYehor/subscriptions","organizations_url":"https://api.github.com/users/KHYehor/orgs","repos_url":"https://api.github.com/users/KHYehor/repos","events_url":"https://api.github.com/users/KHYehor/events{/privacy}","received_events_url":"https://api.github.com/users/KHYehor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KHYehor/LiveCoding","description":"Live Coding Server","fork":true,"url":"https://api.github.com/repos/KHYehor/LiveCoding","forks_url":"https://api.github.com/repos/KHYehor/LiveCoding/forks","keys_url":"https://api.github.com/repos/KHYehor/LiveCoding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KHYehor/LiveCoding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KHYehor/LiveCoding/teams","hooks_url":"https://api.github.com/repos/KHYehor/LiveCoding/hooks","issue_events_url":"https://api.github.com/repos/KHYehor/LiveCoding/issues/events{/number}","events_url":"https://api.github.com/repos/KHYehor/LiveCoding/events","assignees_url":"https://api.github.com/repos/KHYehor/LiveCoding/assignees{/user}","branches_url":"https://api.github.com/repos/KHYehor/LiveCoding/branches{/branch}","tags_url":"https://api.github.com/repos/KHYehor/LiveCoding/tags","blobs_url":"https://api.github.com/repos/KHYehor/LiveCoding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KHYehor/LiveCoding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KHYehor/LiveCoding/git/refs{/sha}","trees_url":"https://api.github.com/repos/KHYehor/LiveCoding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KHYehor/LiveCoding/statuses/{sha}","languages_url":"https://api.github.com/repos/KHYehor/LiveCoding/languages","stargazers_url":"https://api.github.com/repos/KHYehor/LiveCoding/stargazers","contributors_url":"https://api.github.com/repos/KHYehor/LiveCoding/contributors","subscribers_url":"https://api.github.com/repos/KHYehor/LiveCoding/subscribers","subscription_url":"https://api.github.com/repos/KHYehor/LiveCoding/subscription","commits_url":"https://api.github.com/repos/KHYehor/LiveCoding/commits{/sha}","git_commits_url":"https://api.github.com/repos/KHYehor/LiveCoding/git/commits{/sha}","comments_url":"https://api.github.com/repos/KHYehor/LiveCoding/comments{/number}","issue_comment_url":"https://api.github.com/repos/KHYehor/LiveCoding/issues/comments{/number}","contents_url":"https://api.github.com/repos/KHYehor/LiveCoding/contents/{+path}","compare_url":"https://api.github.com/repos/KHYehor/LiveCoding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KHYehor/LiveCoding/merges","archive_url":"https://api.github.com/repos/KHYehor/LiveCoding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KHYehor/LiveCoding/downloads","issues_url":"https://api.github.com/repos/KHYehor/LiveCoding/issues{/number}","pulls_url":"https://api.github.com/repos/KHYehor/LiveCoding/pulls{/number}","milestones_url":"https://api.github.com/repos/KHYehor/LiveCoding/milestones{/number}","notifications_url":"https://api.github.com/repos/KHYehor/LiveCoding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KHYehor/LiveCoding/labels{/name}","releases_url":"https://api.github.com/repos/KHYehor/LiveCoding/releases{/id}","deployments_url":"https://api.github.com/repos/KHYehor/LiveCoding/deployments","created_at":"2018-05-03T10:55:37Z","updated_at":"2018-05-03T10:55:38Z","pushed_at":"2018-05-16T17:43:07Z","git_url":"git://github.com/KHYehor/LiveCoding.git","ssh_url":"git@github.com:KHYehor/LiveCoding.git","clone_url":"https://github.com/KHYehor/LiveCoding.git","svn_url":"https://github.com/KHYehor/LiveCoding","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"HowProgrammingWorks:master","ref":"master","sha":"1d8bbf6c110ada31cac0ce5de221a704fa929979","user":{"login":"HowProgrammingWorks","id":17366055,"avatar_url":"https://avatars1.githubusercontent.com/u/17366055?v=4","gravatar_id":"","url":"https://api.github.com/users/HowProgrammingWorks","html_url":"https://github.com/HowProgrammingWorks","followers_url":"https://api.github.com/users/HowProgrammingWorks/followers","following_url":"https://api.github.com/users/HowProgrammingWorks/following{/other_user}","gists_url":"https://api.github.com/users/HowProgrammingWorks/gists{/gist_id}","starred_url":"https://api.github.com/users/HowProgrammingWorks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HowProgrammingWorks/subscriptions","organizations_url":"https://api.github.com/users/HowProgrammingWorks/orgs","repos_url":"https://api.github.com/users/HowProgrammingWorks/repos","events_url":"https://api.github.com/users/HowProgrammingWorks/events{/privacy}","received_events_url":"https://api.github.com/users/HowProgrammingWorks/received_events","type":"Organization","site_admin":false},"repo":{"id":102895886,"name":"LiveCoding","full_name":"HowProgrammingWorks/LiveCoding","owner":{"login":"HowProgrammingWorks","id":17366055,"avatar_url":"https://avatars1.githubusercontent.com/u/17366055?v=4","gravatar_id":"","url":"https://api.github.com/users/HowProgrammingWorks","html_url":"https://github.com/HowProgrammingWorks","followers_url":"https://api.github.com/users/HowProgrammingWorks/followers","following_url":"https://api.github.com/users/HowProgrammingWorks/following{/other_user}","gists_url":"https://api.github.com/users/HowProgrammingWorks/gists{/gist_id}","starred_url":"https://api.github.com/users/HowProgrammingWorks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HowProgrammingWorks/subscriptions","organizations_url":"https://api.github.com/users/HowProgrammingWorks/orgs","repos_url":"https://api.github.com/users/HowProgrammingWorks/repos","events_url":"https://api.github.com/users/HowProgrammingWorks/events{/privacy}","received_events_url":"https://api.github.com/users/HowProgrammingWorks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HowProgrammingWorks/LiveCoding","description":"Live Coding Server","fork":false,"url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding","forks_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/forks","keys_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/teams","hooks_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/hooks","issue_events_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues/events{/number}","events_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/events","assignees_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/assignees{/user}","branches_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/branches{/branch}","tags_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/tags","blobs_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/git/refs{/sha}","trees_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/statuses/{sha}","languages_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/languages","stargazers_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/stargazers","contributors_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/contributors","subscribers_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/subscribers","subscription_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/subscription","commits_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/commits{/sha}","git_commits_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/git/commits{/sha}","comments_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/comments{/number}","issue_comment_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues/comments{/number}","contents_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/contents/{+path}","compare_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/merges","archive_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/downloads","issues_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues{/number}","pulls_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls{/number}","milestones_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/milestones{/number}","notifications_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/labels{/name}","releases_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/releases{/id}","deployments_url":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/deployments","created_at":"2017-09-08T19:11:12Z","updated_at":"2018-05-01T22:53:20Z","pushed_at":"2018-05-16T17:40:56Z","git_url":"git://github.com/HowProgrammingWorks/LiveCoding.git","ssh_url":"git@github.com:HowProgrammingWorks/LiveCoding.git","clone_url":"https://github.com/HowProgrammingWorks/LiveCoding.git","svn_url":"https://github.com/HowProgrammingWorks/LiveCoding","homepage":null,"size":7,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":4,"open_issues":9,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11"},"html":{"href":"https://github.com/HowProgrammingWorks/LiveCoding/pull/11"},"issue":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues/11"},"comments":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/HowProgrammingWorks/LiveCoding/statuses/e10fada3c65c879b92b99f9335b31da830a78f0a"}},"author_association":"NONE"}}
{"actor":{"display_login":"tshemsedinov"}}