Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Anyone able to give some guidance on reverse proxying websocket connections? #74

Open
chase-lewis-akasa opened this issue Oct 15, 2021 · 0 comments

Comments

@chase-lewis-akasa
Copy link

chase-lewis-akasa commented Oct 15, 2021

There doesn't appear to be any support for this that I can find within the proxy library. Only other examples I've seen are people starting up a net/http server on the side on a different port and proxying through that framework. I know I need to create 2 sockets one between the client and proxy and another between the proxy and backend. My issue is that I don't really see how to even setup a websocket in this situation. I'd think I'd need to setup both connections in the upgrade call, but stuff is so abstracted from me I'm not sure how I'd do that. Do I need to do it on upgrade? Some general help to get started would be much appreciated.

Honestly ... if someone can just show me how to make a new websocket with the framework and register it I could do it. Looking at the Github I'm worried all those methods are private so the backend might be incapable of making outgoing connections and only create them via someone else requesting them.

Chase Lewis

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

No branches or pull requests

1 participant