Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support websocket #1

Open
vagusX opened this issue Dec 21, 2016 · 2 comments
Open

support websocket #1

vagusX opened this issue Dec 21, 2016 · 2 comments
Assignees

Comments

@vagusX
Copy link
Owner

vagusX commented Dec 21, 2016

No description provided.

@vagusX vagusX self-assigned this Dec 21, 2016
@kreativ-software
Copy link

Is this live already? How can we use websocket support?

@raphaelsoul
Copy link
Contributor

As a workaround.

https://github.com/raphaelsoul/koa-proxies/blob/master/index.js#L84

add this line in source and use it like following:

const server = app.listen();
server.on("upgrade", (req, res) => {
    require("koa-proxies").proxy.ws(req, res, { changeOrigin: true, target: "wss://foo.com", }, function(e) {
        getLogger().error(e);
    });
});

Is this live already? How can we use websocket support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants