手动打开socket
const socket = io({ autoConnect: false }); // ... socket.open();
同样,也可以重新连接:
socket.on('disconnect', () => { socket.open(); });