-
Notifications
You must be signed in to change notification settings - Fork 87
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
add support for proxying websockets #126
Comments
lws-rewrite does not currently support rewriting Websocket requests (which can only be proxied via HTTP Connect tunnelling) but i've starting looking for a solution which also honours corporate HTTP proxies. |
Hi! Still needing some help with this? We are adopting Open Source Friday here at Banco do Brasil and I can take this one on my Open Source Fridays. |
Yes, help welcome thanks.. I should write some contributing guidelines - will add it to my list, thanks. |
Any update on this issue? I recently ran into it as well |
I solved the issue of forwarding a Next.JS HRM websocket connection by writing some middleware in file
Configure it as follows. Target address in in property
Note that this only forwards connections to one specific path and performs absolutely zero error checks, which is fine for my application. Ideally this use case would at some point be supported but for now this is a functioning workaround. |
When proxying a websocket with
--rewrite '/ws/(.*) --> https://someserver.com/ws/$1'
local-web-server somehow mangles the response.The text was updated successfully, but these errors were encountered: