test: cover HttpApi workspace routing middleware (#25027)

This commit is contained in:
Kit Langton
2026-04-29 21:08:03 -04:00
committed by GitHub
parent 592340601d
commit a51ea23aa9
4 changed files with 480 additions and 2 deletions
@@ -46,7 +46,7 @@ function echoWebSocket(request: HttpServerRequest.HttpServerRequest) {
// The upstream announces the negotiated protocol, then echoes every
// received frame. The assertions use those messages to prove proxy flow.
yield* socket
.runRaw((message) => write(`echo:${message}`), {
.runRaw((message) => write(`echo:${String(message)}`), {
onOpen: write(`protocol:${request.headers["sec-websocket-protocol"] ?? "none"}`).pipe(
Effect.catch(() => Effect.void),
),