SseClient
A running SSE client.
A running SSE client.
Import#
ts
import type { SseClient } from "@shadow-js/dusk/client";
Signature#
ts
interface SseClient {
/** Closes the stream and stops reconnecting. Safe to call twice. */
close(): void;
/** The current status. */
readonly status: StreamStatus;
}
Members#
| Name | Type | Description |
|---|---|---|
close |
close(): void |
Closes the stream and stops reconnecting. Safe to call twice. |
status |
readonly status: StreamStatus |
The current status. |