registerOkCommandCallBack method

void registerOkCommandCallBack(
  1. String associatedEventId,
  2. void onOk(
    1. NostrEventOkCommand ok
    )?
)

Registers an ok command callback to the registry with the given associatedEventId.

Implementation

void registerOkCommandCallBack(
  String associatedEventId,
  void Function(NostrEventOkCommand ok)? onOk,
) {
  okCommandCallBacks[associatedEventId] = onOk;
}