StreamResponseCleaner class
given a stream with Nip01 events it tracks the id and adds the one to the provided stream controller
tracking of the happens in the tracking list
Constructors
-
StreamResponseCleaner({required Set<
String> trackingSet, required List<Stream< inputStreams, required StreamController<Nip01Event> >Nip01Event> outController, required int? timeout}) -
trackingSet
a set of ids that are already returned \inputStreams
a list of streams that are be listened to \outController
the controller that is used to add the events to \timeout
the timeout for the stream, if null RequestDefaults.DEFAULT_STREAM_IDLE_TIMEOUT is used
Properties
- closedStreams ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputStreams
→ List<
Stream< Nip01Event> > -
final
- numStreams → int
-
no setter
-
outController
→ StreamController<
Nip01Event> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout ↔ int?
-
getter/setter pair
-
trackingSet
→ Set<
String> -
final
Methods
-
call(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited