stream property

Stream<Nip01Event> get stream

Implementation

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