Andrew O'Hara
01/05/2024, 9:18 PMdave
01/05/2024, 9:47 PMAndrew O'Hara
01/05/2024, 10:03 PMBodyMode
to Stream
. It's difficult to debug, because it's a blackbox client and server initiating the websocket, but I'm attempting to reproduce it in test.
On that note, assuming I've created a fake WsHandler
, is it possible to convert it to an HttpHandler
, so I can attach it as a fake device to my reverse-proxy? Or would I need to run my tests against running servers (via PolyServerConfig
) to accomplish this?dave
01/05/2024, 10:08 PMAndrew O'Hara
01/05/2024, 11:08 PMPolyServerConfig
and running a server. But I'm not sure how I can do that in-memory.
I might be making things confusing by the fact that there is both a fake reverse-proxy, and the reverse-proxy application under test. It's a reverse-proxy for several reverse-proxies 🙄 . The fake websocket server is a server behind the fake reverse-proxy, and my websocket client is connecting to the reverse proxy under test.Andrew O'Hara
01/05/2024, 11:15 PMdave
01/06/2024, 6:42 AMAndrew O'Hara
01/06/2024, 3:28 PM