标签: socket.io
够了吗?
socket.close(); // Other code
还是应该将其包装在单独的处理程序中?
socket.on('disconnect', reason => { // Other code }); socket.close();