{"action":"opened","issue":{"url":"https://api.github.com/repos/nuclearace/Socket.IO-Client-Swift/issues/107","repository_url":"https://api.github.com/repos/nuclearace/Socket.IO-Client-Swift","labels_url":"https://api.github.com/repos/nuclearace/Socket.IO-Client-Swift/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/nuclearace/Socket.IO-Client-Swift/issues/107/comments","events_url":"https://api.github.com/repos/nuclearace/Socket.IO-Client-Swift/issues/107/events","html_url":"https://github.com/nuclearace/Socket.IO-Client-Swift/issues/107","id":134646942,"number":107,"title":"Strange bug (version 5.4.1)","user":{"login":"lucianocn","id":3828136,"avatar_url":"https://avatars.githubusercontent.com/u/3828136?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianocn","html_url":"https://github.com/lucianocn","followers_url":"https://api.github.com/users/lucianocn/followers","following_url":"https://api.github.com/users/lucianocn/following{/other_user}","gists_url":"https://api.github.com/users/lucianocn/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianocn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianocn/subscriptions","organizations_url":"https://api.github.com/users/lucianocn/orgs","repos_url":"https://api.github.com/users/lucianocn/repos","events_url":"https://api.github.com/users/lucianocn/events{/privacy}","received_events_url":"https://api.github.com/users/lucianocn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T17:47:21Z","updated_at":"2016-02-18T17:47:21Z","closed_at":null,"body":"Hi,\r\nDebugging with the server log I discovered that when the socket connects, most of time the emit `joinRoom` is being sent but rarely not (randomly).\r\n\r\nI would like to know if there is any problem in my code, or it could be something related to the lib?\r\n\r\n```obj-c\r\nNSURL* url = [[NSURL alloc] initWithString:SERVER_SOCKETIO_URL];\r\nSocketIOClient *socket = [[SocketIOClient alloc] initWithSocketURL:url options:nil];\r\n\r\n[socket on:@\"connect\" callback:^(NSArray* data, SocketAckEmitter* ack) {\r\n    NSLog(@\"SocketIO: Connected.\");\r\n        \r\n    NSLog(@\"SocketIO: Joining room %@.\", [Authenticator getUnitID]);\r\n    [socket emit:@\"joinRoom\" withItems:@[@{@\"room\": @\"14\"}]];\r\n}];\r\n```\r\n\r\n\r\nThanks,"}}