wxapp-socket-io icon indicating copy to clipboard operation
wxapp-socket-io copied to clipboard

请问如何在 on disconnect 后调用重连机制

Open TimonPeng opened this issue 8 years ago • 0 comments

socket.on('disconnect', function () {
  console.log('disconnect')
  socket.io.reconnect();
});

只会尝试重连一次,不会循环尝试。

TimonPeng avatar Dec 09 '17 20:12 TimonPeng