closeSubscription method
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);
}
}