stream property

Stream<Nip01Event> stream

Implementation

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