Vite dev server will auto-increment it's port but not for it's HMR

Continuous socket.io connections quickly filled up the limit of 6 requests in my Firefox causing other requests to not get resolved either.

This is at least the case in Vite 7 I suppose. Could also be related to the particulars of my config. I will check later and see if I can reproduce this in a super small project.

The fix: just set the port again in the server section in your vite config. I suppose strictPort only would make sense here, then?

This is related to this TIL: Firefox won’t tell you why it’s stalling your request

"Don't forget to smile in any situation. As long as you are alive, there will be better things later, and there will be many."

— Bellemere