ring

tvaughan 2021-05-26T18:28:16.008600Z

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

NoahTheDuke 2021-05-26T18:30:24.009Z

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

tvaughan 2021-05-26T18:36:47.009400Z

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?

NoahTheDuke 2021-05-26T18:37:27.009800Z

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

NoahTheDuke 2021-05-26T18:37:44.010Z

ie “how do I make fake websocket requests?”

tvaughan 2021-05-26T18:40:56.010200Z

Haha ah ok! Sorry I wasn't clear

NoahTheDuke 2021-05-26T18:46:06.010400Z

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

NoahTheDuke 2021-05-26T18:46:45.010600Z

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

👍 1
tvaughan 2021-05-26T20:10:38.010900Z

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