[英]Disable WebSocket in create-react-app
I'm just starting with create-react-app, and I found it annoying to see WebSocket errors in console (and the Chrome loading indicator shows up longer). 我刚刚开始使用create-react-app,我发现在控制台中看到WebSocket错误很烦人(并且Chrome加载指示器显示的时间更长)。 Probably I will need WebSocket someday, but right now I just want to disable it.
可能有一天我需要WebSocket,但是现在我只想禁用它。 How do I do that?
我怎么做?
Websockets are used for hot reloading in development mode. Websockets用于在开发模式下进行热重新加载。
More info about disabling hot reloading here: https://github.com/facebook/create-react-app/issues/1940 有关禁用热重新加载的更多信息,请访问: https : //github.com/facebook/create-react-app/issues/1940
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.