Skip to content

Interface: StreamSubscriptionHandle ​

Defined in: ports/stream-subscription-handle.ts:6

Active subscription handle returned by StreamSource.subscribe().

Exposes a deterministic close() method to unsubscribe from the event stream cleanly.

Methods ​

close() ​

ts
close(): Promise<void>;

Defined in: ports/stream-subscription-handle.ts:14

Closes the event stream subscription and releases any underlying network or webhook listeners.

Invoked by HarnessRuntime.stop() during graceful runtime shutdown.

Returns ​

Promise<void>

Resolves once the subscription is closed.

Released under the MIT License.