阅读背景:

当服务器重新启动时,NodeJS Websocket如何重新连接

来源:互联网 

In Node.js I'm using websockets/ws for a WebSocket connection. Below is the code for the client. Let's say the server socket we are connecting to goes down for a minute. The close event will fire, but what is the best way to reconnect to the socket whenever the socket on the server goes down or errors? for a WebSoc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: