{"action":"opened","issue":{"url":"https://api.github.com/repos/h2o/h2o/issues/1435","repository_url":"https://api.github.com/repos/h2o/h2o","labels_url":"https://api.github.com/repos/h2o/h2o/issues/1435/labels{/name}","comments_url":"https://api.github.com/repos/h2o/h2o/issues/1435/comments","events_url":"https://api.github.com/repos/h2o/h2o/issues/1435/events","html_url":"https://github.com/h2o/h2o/issues/1435","id":261227525,"number":1435,"title":"feature submit for H2o (websockets proxy to tcp or unix socket)","user":{"login":"diecyde","id":13555015,"avatar_url":"https://avatars0.githubusercontent.com/u/13555015?v=4","gravatar_id":"","url":"https://api.github.com/users/diecyde","html_url":"https://github.com/diecyde","followers_url":"https://api.github.com/users/diecyde/followers","following_url":"https://api.github.com/users/diecyde/following{/other_user}","gists_url":"https://api.github.com/users/diecyde/gists{/gist_id}","starred_url":"https://api.github.com/users/diecyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diecyde/subscriptions","organizations_url":"https://api.github.com/users/diecyde/orgs","repos_url":"https://api.github.com/users/diecyde/repos","events_url":"https://api.github.com/users/diecyde/events{/privacy}","received_events_url":"https://api.github.com/users/diecyde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-28T08:03:18Z","updated_at":"2017-09-28T08:03:18Z","closed_at":null,"author_association":"NONE","body":"Hello all,\r\n\r\nI have created an new module for H2o, this module upgrades calls to configured directories to websockets.\r\nAfter upgrading it connects to an specified tcp/unix socket.\r\nThis functionality is much like what is already supported by lighttpd.\r\n\r\nAll framing needs to be handled by the party which accepts the socket. \r\nThe module is based on the fcgi module source code, and I tried to optimize it as much possible.\r\n\r\n\r\n**Configuration**\r\nI have embedded 2 configuration parameters:\r\n\r\nwebsocket.connect:\r\nregisters an tcp or unix endpoint to make the connection to (adopted from fcgi)\r\n\r\nwebsocket.accept_protocol:\r\noptional: specifies which protocol should be accepted\r\n\r\nAn example configuration:\r\n\r\n>    \"/ws\":\r\n    websocket.connect:\r\n     port: /tmp/ws.socket\r\n     type: unix\r\n\r\nPlease review my code and feel free to optimize or modify my patch it in any way.\r\nI really feel this module will up the ante for this awesome webserver.\r\n\r\n[h2o_2.2.2_websocket_module.patch.zip](https://github.com/h2o/h2o/files/1339924/h2o_2.2.2_websocket_module.patch.zip)"}}
{"actor":{"display_login":"diecyde"}}