N
Nuxt5mo ago
peac

vite hmr websocket connection issue

Hi, I'm running Nuxt 3 in dev mode and i'm facing a weird issue. The app defines a websocket service that opens a websocket url and updates a state when it receives messages. That works fine. However when a crash happens, i'll correct the bug in the code, and sometimes it won't autoreload, so I'll reload manually. Then I see
[vite] connecting...
ws init
[vite] connecting...
ws init
(ws messages are my own message for my websocket service), a good 3-4 minutes pass and then i see
[vite] connected.
ws connected
[vite] connected.
ws connected
This looks like vite is having a websocket issue that blocks my own websocket. This frontend and its api are in docker containers. Downing and Upping the whole compose does NOT fix the issue. Does it look like anything known ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server