Server does not accept handshake
JCtapuk opened this issue · 4 comments
Environment
Node 20.11.0
Yarn 1.22.19
Npm 10.2.4
Reproduction
https://github.com/pixeland-online/nuxt-match
Describe the bug
If you take from ready-made ones like nuxt-chat, then the socket normally accepts a handshake. What if I created a pure Nuxt and enabled the experimental websocket. That handshake is not approved until the server is turned off and the error is caught. I tested it on my computer and through github codespace, in both cases the situation was similar.
As I previously wrote in another post. But apparently the socket is not friendly with the adapter node with nitro. If only CrossWS is direct, then everything works.
Additional context
No response
Logs
No response
Do you think it is a nitro issue or crossws?
Do you think it is a nitro issue or crossws?
I think it's my mistake that I didn't include "nuxt": "npm:nuxt-nightly@latest" in the package
so it was your setup issue and solved?
so it was your setup issue and solved?
Yes. I forget that it hasn't been released for nuxt yet