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

Is there anyway to not block the server in dev using devServer from vite-dev-server #163

Open
AddictArts opened this issue Aug 19, 2024 · 0 comments

Comments

@AddictArts
Copy link

I noticed that when running vite using hono/vite-dev-server it will block after:

VITE v5.3.5  ready in 371 ms
  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose

Until one request hits that port 5173, then the remaining code in your entry will trigger.

Example; You have an app and some .get() with a upgradeWebSocket. Then the client is using client.ws.$ws().

This also has the adverse effect of delaying a WebSocket request until an http one is made. Is there anyway to tell the dev server to not block.

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