Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount websocket on same path as another handler #719

Open
tobiasdiez opened this issue Mar 23, 2024 · 0 comments
Open

Mount websocket on same path as another handler #719

tobiasdiez opened this issue Mar 23, 2024 · 0 comments

Comments

@tobiasdiez
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant