registerCountResponseCallBack method
void
registerCountResponseCallBack({
- required String subscriptionId,
- required void onCountResponse(
- String relay,
- NostrCountResponse countResponse
- required String relay,
Registers a count response callback to the registry with the given subscriptionId
.
Implementation
void registerCountResponseCallBack({
required String subscriptionId,
required void Function(String relay, NostrCountResponse countResponse)
onCountResponse,
required String relay,
}) {
final relayCountRegister = countResponseCallBacks[subscriptionId];
relayCountRegister?[subscriptionId] = onCountResponse;
}