onEoseReceivedFromRelay static method

void onEoseReceivedFromRelay(
  1. RequestState requestState
)

Implementation

static void onEoseReceivedFromRelay(RequestState requestState) async {
  // check if all subscriptions received EOSE (async) at the current time

  if (requestState.isSubscription) {
    return;
  }
  for (var sub in requestState.activeRelaySubscriptions.values) {
    await sub.activeSubscriptions[requestState.id]?.eoseReceived;
  }
  requestState.networkController.close();
}