diff --git a/ext/http/00_serve.ts b/ext/http/00_serve.ts index 84b8cd321b..670b64676e 100644 --- a/ext/http/00_serve.ts +++ b/ext/http/00_serve.ts @@ -225,7 +225,7 @@ class InnerRequest { const wsRid = await wsPromise; // We have to wait for the go-ahead signal - await goAhead; + await goAhead.promise; ws[_rid] = wsRid; ws[_readyState] = WebSocket.OPEN;