ring 2021-05-26

Has anyone been able to successfully proxy websockets in a ring app? I can proxy http/s just fine, but I don't know how to handle a websocket

i’ve had mild success with https://github.com/stalefruits/gniazdo, tho i ddin’t put it in any tests, just a simple script

Thanks! Looks like with this the proxy would have to re-create the websocket request. I'll need to maintain a connection pool in the proxy so connections are re-used too. Does that sound right?

oh, proxy! heck, I don’t know much about that. I interpreted that as “mock” or “stub”, lol

ie “how do I make fake websocket requests?”

Haha ah ok! Sorry I wasn't clear

nah, it’s my b for jumping to an answer without understanding the question. head empty no thoughts

that library is very nice tho. works seamlessly with sente, which is our primary websockets library.

👍 1

I may be able to use the middleware wrapper in https://github.com/jarohen/chord#clojure ...