onMessage method

void onMessage(
  1. Nip01Event event,
  2. RequestState requestState
)

add to response stream

Implementation

void onMessage(Nip01Event event, RequestState requestState) async {
  // add to response stream
  requestState.networkController.add(event);
}