DisconnectWithReason method
Implementation
Future<void> DisconnectWithReason(
HangingRequestDisconnectReason reason,
Exception? exception,
) async {
if (IsConnected) {
_response.Close();
await _InternalOnDisconnect(reason, exception);
}
}