diff --git a/packages/vinxi/lib/nitro-dev.js b/packages/vinxi/lib/nitro-dev.js index 83b08242..1fe4826e 100644 --- a/packages/vinxi/lib/nitro-dev.js +++ b/packages/vinxi/lib/nitro-dev.js @@ -293,26 +293,7 @@ export async function createDevServer(nitro) { // }), // ); - const adapter = wsAdapter({ - ...wsApp.websocket, - hooks: { - open: (event) => { - event.ctx.node.req.url = event.ctx.node.req.originalUrl; - }, - message: (event) => { - event.ctx.node.req.url = event.ctx.node.req.originalUrl; - }, - close: (event) => { - event.ctx.node.req.url = event.ctx.node.req.originalUrl; - }, - error: (event) => { - event.ctx.node.req.url = event.ctx.node.req.originalUrl; - }, - upgrade: (event) => { - // event.ctx.node.req.url = event.ctx.node.req.originalUrl; - }, - }, - }); + const adapter = wsAdapter(wsApp.websocket); // Listen /** @type {import("@vinxi/listhen").Listener[]} */ let listeners = [];