{"action":"created","issue":{"url":"https://api.github.com/repos/720kb/comunicator/issues/6","labels_url":"https://api.github.com/repos/720kb/comunicator/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/720kb/comunicator/issues/6/comments","events_url":"https://api.github.com/repos/720kb/comunicator/issues/6/events","html_url":"https://github.com/720kb/comunicator/issues/6","id":69203497,"number":6,"title":"BE Sockets Array - queue message is sent before user is in connected sockets array","user":{"login":"45kb","id":7761650,"avatar_url":"https://avatars.githubusercontent.com/u/7761650?v=3","gravatar_id":"","url":"https://api.github.com/users/45kb","html_url":"https://github.com/45kb","followers_url":"https://api.github.com/users/45kb/followers","following_url":"https://api.github.com/users/45kb/following{/other_user}","gists_url":"https://api.github.com/users/45kb/gists{/gist_id}","starred_url":"https://api.github.com/users/45kb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/45kb/subscriptions","organizations_url":"https://api.github.com/users/45kb/orgs","repos_url":"https://api.github.com/users/45kb/repos","events_url":"https://api.github.com/users/45kb/events{/privacy}","received_events_url":"https://api.github.com/users/45kb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T19:36:50Z","updated_at":"2015-04-18T10:13:24Z","closed_at":"2015-04-18T10:13:24Z","body":"There is a little problem when:\r\n\r\n- user1 and user2 are connected\r\n- BE goes down\r\n- user1 sends a queue message to user2\r\n- BE returns up and running\r\n- user1 and user2 are re-connected to ws\r\n- user1 queue message returns: \"No user2 is connected to the sockets\"\r\n\r\nLooks like node sockets array is empty (or missing the specific user) before the queue message is sent.\r\n\r\n:hammer: "},"comment":{"url":"https://api.github.com/repos/720kb/comunicator/issues/comments/94150964","html_url":"https://github.com/720kb/comunicator/issues/6#issuecomment-94150964","issue_url":"https://api.github.com/repos/720kb/comunicator/issues/6","id":94150964,"user":{"login":"wouldgo","id":1098882,"avatar_url":"https://avatars.githubusercontent.com/u/1098882?v=3","gravatar_id":"","url":"https://api.github.com/users/wouldgo","html_url":"https://github.com/wouldgo","followers_url":"https://api.github.com/users/wouldgo/followers","following_url":"https://api.github.com/users/wouldgo/following{/other_user}","gists_url":"https://api.github.com/users/wouldgo/gists{/gist_id}","starred_url":"https://api.github.com/users/wouldgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouldgo/subscriptions","organizations_url":"https://api.github.com/users/wouldgo/orgs","repos_url":"https://api.github.com/users/wouldgo/repos","events_url":"https://api.github.com/users/wouldgo/events{/privacy}","received_events_url":"https://api.github.com/users/wouldgo/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T10:13:24Z","updated_at":"2015-04-18T10:13:24Z","body":"Closed with df20d2d770b913040a8fbdb7895815c3009e3904\r\n\r\nNow the node comunicator part stores all the send that aren't delivered and then waits for the `join` opcode to flush the queued messages.\r\n"}}