{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io-client/issues/907","labels_url":"https://api.github.com/repos/socketio/socket.io-client/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-client/issues/907/comments","events_url":"https://api.github.com/repos/socketio/socket.io-client/issues/907/events","html_url":"https://github.com/socketio/socket.io-client/pull/907","id":117770604,"number":907,"title":"add support for per transport options","user":{"login":"liorsion","id":462660,"avatar_url":"https://avatars.githubusercontent.com/u/462660?v=3","gravatar_id":"","url":"https://api.github.com/users/liorsion","html_url":"https://github.com/liorsion","followers_url":"https://api.github.com/users/liorsion/followers","following_url":"https://api.github.com/users/liorsion/following{/other_user}","gists_url":"https://api.github.com/users/liorsion/gists{/gist_id}","starred_url":"https://api.github.com/users/liorsion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liorsion/subscriptions","organizations_url":"https://api.github.com/users/liorsion/orgs","repos_url":"https://api.github.com/users/liorsion/repos","events_url":"https://api.github.com/users/liorsion/events{/privacy}","received_events_url":"https://api.github.com/users/liorsion/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T09:08:51Z","updated_at":"2015-12-02T02:22:04Z","closed_at":"2015-12-02T02:22:04Z","pull_request":{"url":"https://api.github.com/repos/socketio/socket.io-client/pulls/907","html_url":"https://github.com/socketio/socket.io-client/pull/907","diff_url":"https://github.com/socketio/socket.io-client/pull/907.diff","patch_url":"https://github.com/socketio/socket.io-client/pull/907.patch"},"body":"sometimes we need different transports to go to different destinations.\r\n\r\nFor example, when doing ELB load balancing, ELB can't do both websockets (TCP) and HTTP affinity (which is needed for polling) unless we use different ports.\r\n\r\nWith this simple solution socket.io can now easily work with ELB."},"comment":{"url":"https://api.github.com/repos/socketio/socket.io-client/issues/comments/161158596","html_url":"https://github.com/socketio/socket.io-client/pull/907#issuecomment-161158596","issue_url":"https://api.github.com/repos/socketio/socket.io-client/issues/907","id":161158596,"user":{"login":"nkzawa","id":775227,"avatar_url":"https://avatars.githubusercontent.com/u/775227?v=3","gravatar_id":"","url":"https://api.github.com/users/nkzawa","html_url":"https://github.com/nkzawa","followers_url":"https://api.github.com/users/nkzawa/followers","following_url":"https://api.github.com/users/nkzawa/following{/other_user}","gists_url":"https://api.github.com/users/nkzawa/gists{/gist_id}","starred_url":"https://api.github.com/users/nkzawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkzawa/subscriptions","organizations_url":"https://api.github.com/users/nkzawa/orgs","repos_url":"https://api.github.com/users/nkzawa/repos","events_url":"https://api.github.com/users/nkzawa/events{/privacy}","received_events_url":"https://api.github.com/users/nkzawa/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T02:22:04Z","updated_at":"2015-12-02T02:22:04Z","body":"Basically, a client connection has to go to a same destination to keep session even after upgrading transports.\r\nI think you can explicitly set different url and transports setting like the followings If you'd like to make transports go different destinations.\r\n\r\n```js\r\nio('http://foo', { transports: ['websocket'] });\r\nio('http://bar', { transports: ['polling'] })\r\n```\r\n\r\nFeel free to reopen if I'm missing something."}}