You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run the code so it keeps trying to connect to the websocket,
run the nitro server with "npm run dev" in codesandbox
you will see an error saying "Must provide a proper URL as Target"
Describe the bug
The bug only happens when you got clients already trying to connect to the websocket before the server is even running.
It won't happen if the server is run first and then clients start to connect.
Additional context
No response
Logs
error: Must provide a proper URL as target
at <anonymous> (E:\JS\huginn-monorepo\node_modules\httpxy\dist\index.mjs:539:9)
at <anonymous> (E:\JS\huginn-monorepo\node_modules\nitropack\dist\core\index.mjs:2457:7)
at emit (node:events:331:22)
at fetch (node:http:589:24)
The text was updated successfully, but these errors were encountered:
Environment
just the exact codesandbox template using nodejs.
Reproduction
You can use this code in the browser to keep trying to connect to the websocket and then run the server in the codesandbox.
Here is the code:
and the codesandbox:
https://codesandbox.io/p/github/nitrojs/nitro/csb-pp9zzy/draft/compassionate-wiles
Steps:
Describe the bug
The bug only happens when you got clients already trying to connect to the websocket before the server is even running.
It won't happen if the server is run first and then clients start to connect.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: