registerEoseCommandCallBack method

void registerEoseCommandCallBack({
  1. required String subscriptionId,
  2. required void onEose(
    1. String relay,
    2. NostrRequestEoseCommand eose
    ),
  3. required String relay,
})

Registers an eose command callback to the registry with the given subscriptionId.

Implementation

void registerEoseCommandCallBack({
  required String subscriptionId,
  required void Function(String relay, NostrRequestEoseCommand eose) onEose,
  required String relay,
}) {
  final relayEoseRegister = getOrCreateRegister(eoseCommandCallBacks, relay);

  relayEoseRegister[subscriptionId] = onEose;
}