diff --git a/server.ts b/server.ts index f9db5da..5f1950a 100644 --- a/server.ts +++ b/server.ts @@ -67,7 +67,7 @@ const serverFactory = (handler, opts) => { } else if (shouldRouteRh(req)) { routeRhUpgrade(req, socket, head); } else if (req.url.endsWith("/wisp/")) { - wisp.routeRequest(req, socket as Socket, head); + wisp.routeRequest(req, socket, head); } }); };