InternalOnDisconnect method

void InternalOnDisconnect(
  1. Object? ex
)
helper method called when the request disconnects. The exception that caused the disconnection. May be null.

Implementation

/* private */
void InternalOnDisconnect(Object? ex) {
  this._currentHangingRequest = null;
  for (final delegate in OnDisconnect) {
    delegate(this, new SubscriptionErrorEventArgs(null, ex));
  }
}