registerCountResponseCallBack method

void registerCountResponseCallBack(
  1. String subscriptionId,
  2. void onCountResponse(
    1. NostrCountResponse countResponse
    )
)

Registers a count response callback to the registry with the given subscriptionId.

Implementation

void registerCountResponseCallBack(
  String subscriptionId,
  void Function(NostrCountResponse countResponse) onCountResponse,
) {
  countResponseCallBacks[subscriptionId] = onCountResponse;
}