koa-proxies
koa-proxies copied to clipboard
support websocket
Is this live already? How can we use websocket support?
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?