closeSubscription method

void closeSubscription(
  1. String subscriptionId
)

Implementation

void closeSubscription(String subscriptionId) {
  RequestState? state = globalState.inFlightRequests[subscriptionId];
  if (state != null) {
    for (var url in state.requests.keys) {
      sendCloseToRelay(url, state.id);
    }
    removeInFlightRequestById(subscriptionId);
  }
}