Skip to content

Commit

Permalink
fixed crossws 0.3.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelocarvajal committed Dec 15, 2024
1 parent b11405d commit 6e3dcc8
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions packages/vinxi/lib/nitro-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 6e3dcc8

Please sign in to comment.