{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/246","labels_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/246/comments","events_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/246/events","html_url":"https://github.com/socketio/socket.io-client-swift/issues/246","id":119726511,"number":246,"title":"ForceNew option for client","user":{"login":"ramden","id":630532,"avatar_url":"https://avatars.githubusercontent.com/u/630532?v=3","gravatar_id":"","url":"https://api.github.com/users/ramden","html_url":"https://github.com/ramden","followers_url":"https://api.github.com/users/ramden/followers","following_url":"https://api.github.com/users/ramden/following{/other_user}","gists_url":"https://api.github.com/users/ramden/gists{/gist_id}","starred_url":"https://api.github.com/users/ramden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramden/subscriptions","organizations_url":"https://api.github.com/users/ramden/orgs","repos_url":"https://api.github.com/users/ramden/repos","events_url":"https://api.github.com/users/ramden/events{/privacy}","received_events_url":"https://api.github.com/users/ramden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/socketio/socket.io-client-swift/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-01T14:21:59Z","updated_at":"2015-12-03T16:12:29Z","closed_at":null,"body":"The issue kind of relates to this:\r\nhttps://github.com/socketio/socket.io-client-swift/issues/237\r\n\r\nIn comparison on android I have the option forceNew, which upon disconnection connects without an sid param to socket.io server (to get a new one).\r\n\r\nSo if forceNew on this library is set it should reconnect always without sid param\r\n\r\nThis should also go with http code parsing (see above older issue) : if the http response code is 4XX or 5XX the library should fire disconnect / reconnect and if forceNew is true then connect like from beginning without sid param.\r\n\r\nSituation is reconstructed by : initial node connected to killed, session id lost, the library is being redirected to another node where the old session id is missing. Also 4XX and 5XX codes are being ignored (no disconnect happens sometimes).\r\n\r\nThis all is reconstructed with forced pooling (infinite)\r\nTo put it simple: it is not good that the sid is never changed as this can happen naturally"},"comment":{"url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/comments/161694247","html_url":"https://github.com/socketio/socket.io-client-swift/issues/246#issuecomment-161694247","issue_url":"https://api.github.com/repos/socketio/socket.io-client-swift/issues/246","id":161694247,"user":{"login":"sasavranic","id":10142621,"avatar_url":"https://avatars.githubusercontent.com/u/10142621?v=3","gravatar_id":"","url":"https://api.github.com/users/sasavranic","html_url":"https://github.com/sasavranic","followers_url":"https://api.github.com/users/sasavranic/followers","following_url":"https://api.github.com/users/sasavranic/following{/other_user}","gists_url":"https://api.github.com/users/sasavranic/gists{/gist_id}","starred_url":"https://api.github.com/users/sasavranic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sasavranic/subscriptions","organizations_url":"https://api.github.com/users/sasavranic/orgs","repos_url":"https://api.github.com/users/sasavranic/repos","events_url":"https://api.github.com/users/sasavranic/events{/privacy}","received_events_url":"https://api.github.com/users/sasavranic/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T16:12:29Z","updated_at":"2015-12-03T16:12:29Z","body":"Ok, I forked branch this morning ... we will see"}}