closeIfAllEventsVerified method
Implementation
void closeIfAllEventsVerified(
RelayRequestState request, RequestState state, String url) {
if (request.receivedEOSE && request.eventIdsToBeVerified.isEmpty) {
if (state.request.closeOnEOSE) {
sendCloseToRelay(url, state.id);
if (state.requests.isEmpty || state.didAllRequestsReceivedEOSE) {
removeInFlightRequest(state);
}
}
state.requests.remove(url);
}
}