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
Hi, I'm using webpack and webpack-dev-server to build my front-end project. Everything is ok except the websocket on Chrome. It disconnects when I have no new update on my files. While on Firefox, the same configuration and code, the websocket can have a ping-pong heartbeat to keep it alive.
When I first see this problem, I think maybe I open several tabs (includding pads or phones browser) so the socket has some problem. Then I test it only in one tab, here's the result.
Hi, I'm using webpack and webpack-dev-server to build my front-end project. Everything is ok except the websocket on Chrome. It disconnects when I have no new update on my files. While on Firefox, the same configuration and code, the websocket can have a ping-pong heartbeat to keep it alive.
When I first see this problem, I think maybe I open several tabs (includding pads or phones browser) so the socket has some problem. Then I test it only in one tab, here's the result.
Configuration and code
webpack.config.js
webpack-dev-server command
webpack-dev-server --inline --hot --port 9090 --host 127.0.0.1
Chrome
log from console
If I do nothing to the source, the websocket will disconnect automatically.
FireFox
There is heartbeat, so websocket keeps connecting.
Version info
Do I make mistakes on some configurations? Or other reasons? Thanks.
The text was updated successfully, but these errors were encountered: