FileSessionEventSource class final

Implemented types

Constructors

FileSessionEventSource({required ExecutionEnv env, required Future<String?> resolvePath(String sessionId), Duration pollInterval = const Duration(seconds: 1)})
Creates the source. resolvePath maps a session id to its JSONL path (the host resolves it however it likes — typically JsonlSessionRepo.list metadata); pollInterval is injectable for tests.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Stops all watches and releases resources.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
watch(String sessionId) Stream<AttachedSessionEvent>
Starts following the session; the stream emits the initial backlog and every message appended afterwards. Never emits an error — a dead watch ends with a done event.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited