{"action":"created","issue":{"url":"https://api.github.com/repos/faye/faye/issues/441","repository_url":"https://api.github.com/repos/faye/faye","labels_url":"https://api.github.com/repos/faye/faye/issues/441/labels{/name}","comments_url":"https://api.github.com/repos/faye/faye/issues/441/comments","events_url":"https://api.github.com/repos/faye/faye/issues/441/events","html_url":"https://github.com/faye/faye/pull/441","id":162204238,"number":441,"title":"fallback transport mode","user":{"login":"jkarneges","id":521953,"avatar_url":"https://avatars.githubusercontent.com/u/521953?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarneges","html_url":"https://github.com/jkarneges","followers_url":"https://api.github.com/users/jkarneges/followers","following_url":"https://api.github.com/users/jkarneges/following{/other_user}","gists_url":"https://api.github.com/users/jkarneges/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarneges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarneges/subscriptions","organizations_url":"https://api.github.com/users/jkarneges/orgs","repos_url":"https://api.github.com/users/jkarneges/repos","events_url":"https://api.github.com/users/jkarneges/events{/privacy}","received_events_url":"https://api.github.com/users/jkarneges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-24T18:29:40Z","updated_at":"2016-06-28T22:32:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/faye/faye/pulls/441","html_url":"https://github.com/faye/faye/pull/441","diff_url":"https://github.com/faye/faye/pull/441.diff","patch_url":"https://github.com/faye/faye/pull/441.patch"},"body":"This patch introduces a new option called `transportMode`, which can be used like this:\r\n\r\n```js\r\nvar client = new Faye.Client('http://example.com/bayeux', {\r\n  transportMode: 'fallback'\r\n});\r\n```\r\n\r\nWhen set to `fallback`, messages after the handshake will wait for the first available preferred transport."},"comment":{"url":"https://api.github.com/repos/faye/faye/issues/comments/229204378","html_url":"https://github.com/faye/faye/pull/441#issuecomment-229204378","issue_url":"https://api.github.com/repos/faye/faye/issues/441","id":229204378,"user":{"login":"jcoglan","id":9265,"avatar_url":"https://avatars.githubusercontent.com/u/9265?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoglan","html_url":"https://github.com/jcoglan","followers_url":"https://api.github.com/users/jcoglan/followers","following_url":"https://api.github.com/users/jcoglan/following{/other_user}","gists_url":"https://api.github.com/users/jcoglan/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoglan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoglan/subscriptions","organizations_url":"https://api.github.com/users/jcoglan/orgs","repos_url":"https://api.github.com/users/jcoglan/repos","events_url":"https://api.github.com/users/jcoglan/events{/privacy}","received_events_url":"https://api.github.com/users/jcoglan/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T22:32:23Z","updated_at":"2016-06-28T22:32:23Z","body":"> What I'm noticing is that if WebSocket connectivity becomes unavailable while the websocket transport is in use, then Faye isn't falling back to long-polling, but I'm seeing this on master as well without my modifications. Is that a bug?\r\n\r\nOnce Faye has successfully made a WebSocket connection to an endpoint, it will keep using WebSocket and not downgrade its transport. Usually, WebSocket disconnections are transient issues with the server or network, which tend to make other transports unusable as well. In the vast majority of cases this is a workable assumption."}}
{"actor":{"display_login":"jcoglan"}}