getEoseCommandCallBack method

(void Function(String relay, NostrRequestEoseCommand eose)?) getEoseCommandCallBack({
  1. required String subscriptionId,
  2. required String relay,
})

Returns an eose command callback from the registry with the given subscriptionId.

Implementation

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

  return relayEoseRegister[subscriptionId];
}