onWebSocketResponse method

void onWebSocketResponse()

Implementation

void onWebSocketResponse() {
  if (_isDisposed || !canUpdateState) return;

  _stopAllTimers();

  if (state.isWaitingForWebSocket) {
    _safeStateUpdate(() => state.copyWith(
      isWaitingForWebSocket: false,
      currentProgress: 0.0,
    ));
  }
}