h3
h3 copied to clipboard
Mount websocket on same path as another handler
Environment
Nightly version of h3
Reproduction
Is there a template to start a reproduction?
Describe the bug
If you have a websocket handler and a normal handler on the same route, say
app.use('/', [
defineWebSocketHandler({...}),
defineEventHandler({...}),
])
or, the other way around,
app.use('/', [
defineEventHandler({...}),
defineWebSocketHandler({...}),
])
Then only the websocket or the normal request is working (depending on which comes first).
Additional context
No response
Logs
No response