{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/3366","labels_url":"https://api.github.com/repos/openshift/origin/issues/3366/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/3366/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/3366/events","html_url":"https://github.com/openshift/origin/issues/3366","id":89880534,"number":3366,"title":"Websocket support for exec","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/restapi","name":"component/restapi","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-06-21T08:13:04Z","updated_at":"2015-08-20T14:34:29Z","closed_at":null,"body":"Currently trying to use websocket to create browser terminal running exec for fabric8 console. Websocket request is sent but server returns unexpected 200 rather than 101 for socket upgrade & hence websocket connection is terminated. Should exec support websockets? Seems perfect to be able to create browser based terminal connecting to pods.\r\n\r\nTested also on cmd line using wscat (https://github.com/websockets/wscat) which works great for watches, etc, but not so much for exec:\r\n\r\n```\r\n$ wscat -n -c 'wss://localhost:8443/api/v1/namespaces/default/pods/heaps\r\nter-4roo8/exec?access_token=<validtoken>&command=ash&stdin=true\r\n&stderr=true&tty=true'\r\n\r\nerror: Error: unexpected server response (200)\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/133031587","html_url":"https://github.com/openshift/origin/issues/3366#issuecomment-133031587","issue_url":"https://api.github.com/repos/openshift/origin/issues/3366","id":133031587,"user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T14:34:29Z","updated_at":"2015-08-20T14:34:29Z","body":"We *can* support it, but someone has to do the work :)  It's more\ncomplicated because we have to get the streaming right as it crosses\nboundaries (it's HTTP2 between nodes and masters, but web sockets between\nmaster and clients).\n\nOn Thu, Aug 20, 2015 at 3:09 AM, Jimmi Dyson <notifications@github.com>\nwrote:\n\n> How's this going? Any target for this? Thinking on this & wondering why we\n> can't support websockets in the same way docker attach can?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/openshift/origin/issues/3366#issuecomment-132914345>.\n>\n\n\n\n-- \nClayton Coleman | Lead Engineer, OpenShift\n"}}