stream property

Stream<Nip01Event> get stream

Implementation

Stream<Nip01Event> get stream {
  if (request.timeout != null && _timeout == null) {
    _timeout = Timer(Duration(seconds: request.timeout!), () {
      if (request.onTimeout != null) {
        request.onTimeout!.call(this);
      }
    });
  }
  return controller.stream;
}