sendCountEventToRelays method
void
sendCountEventToRelays(
- NostrCountEvent countEvent, {
- required void onCountResponse(
- NostrCountResponse countResponse
override
Implementation
@override
void sendCountEventToRelays(
NostrCountEvent countEvent, {
required void Function(NostrCountResponse countResponse) onCountResponse,
}) {
final serialized = countEvent.serialized();
_registerOnCountCallBack(countEvent.subscriptionId, onCountResponse);
_runFunctionOverRelationIteration((relay) {
relay.socket.add(serialized);
utils.log(
'Count Event with subscription id: ${countEvent.subscriptionId} is sent to relay with url: ${relay.url}',
);
});
}