getCountResponseCallBack method

(void Function(String relay, NostrCountResponse countResponse)?) getCountResponseCallBack({
  1. required String subscriptionId,
  2. required String relay,
})

Returns a count response callback from the registry with the given subscriptionId.

Implementation

void Function(
  String relay,
  NostrCountResponse countResponse,
)? getCountResponseCallBack({
  required String subscriptionId,
  required String relay,
}) {
  final relayCountRegister =
      getOrCreateRegister(countResponseCallBacks, relay);

  return relayCountRegister[subscriptionId];
}