{"action":"created","issue":{"url":"https://api.github.com/repos/prdn/pigato/issues/60","labels_url":"https://api.github.com/repos/prdn/pigato/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/prdn/pigato/issues/60/comments","events_url":"https://api.github.com/repos/prdn/pigato/issues/60/events","html_url":"https://github.com/prdn/pigato/issues/60","id":109662872,"number":60,"title":"socket.identity must be unique for each fresh socket","user":{"login":"allain","id":112751,"avatar_url":"https://avatars.githubusercontent.com/u/112751?v=3","gravatar_id":"","url":"https://api.github.com/users/allain","html_url":"https://github.com/allain","followers_url":"https://api.github.com/users/allain/followers","following_url":"https://api.github.com/users/allain/following{/other_user}","gists_url":"https://api.github.com/users/allain/gists{/gist_id}","starred_url":"https://api.github.com/users/allain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allain/subscriptions","organizations_url":"https://api.github.com/users/allain/orgs","repos_url":"https://api.github.com/users/allain/repos","events_url":"https://api.github.com/users/allain/events{/privacy}","received_events_url":"https://api.github.com/users/allain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-04T04:43:02Z","updated_at":"2015-10-06T22:57:15Z","closed_at":"2015-10-06T22:57:15Z","body":"When a Worker is stopped and restarted its socket it closed and then a new one is created.\r\n\r\nBoth sockets share the same identity (the worker name). This causes the second socket to silently drop any messages it sends out.\r\n\r\nI was able to resolve this by setting the identity of the created socket to this.conf.name + Date.now(). The sockets don't interfere with each other any more, but then a whole bunch of unit tests start failing since the identity of the socket is used to identify the Worker."},"comment":{"url":"https://api.github.com/repos/prdn/pigato/issues/comments/146027656","html_url":"https://github.com/prdn/pigato/issues/60#issuecomment-146027656","issue_url":"https://api.github.com/repos/prdn/pigato/issues/60","id":146027656,"user":{"login":"prdn","id":3747053,"avatar_url":"https://avatars.githubusercontent.com/u/3747053?v=3","gravatar_id":"","url":"https://api.github.com/users/prdn","html_url":"https://github.com/prdn","followers_url":"https://api.github.com/users/prdn/followers","following_url":"https://api.github.com/users/prdn/following{/other_user}","gists_url":"https://api.github.com/users/prdn/gists{/gist_id}","starred_url":"https://api.github.com/users/prdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prdn/subscriptions","organizations_url":"https://api.github.com/users/prdn/orgs","repos_url":"https://api.github.com/users/prdn/repos","events_url":"https://api.github.com/users/prdn/events{/privacy}","received_events_url":"https://api.github.com/users/prdn/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T22:57:15Z","updated_at":"2015-10-06T22:57:15Z","body":"Fixed "}}