close method
关闭连接
Implementation
Future<void> close() async {
_reconnectAttempts = maxReconnectAttempts; // 防止自动重连
_cleanUp();
_delegate?.onClose?.call();
}
关闭连接
Future<void> close() async {
_reconnectAttempts = maxReconnectAttempts; // 防止自动重连
_cleanUp();
_delegate?.onClose?.call();
}