Interface SSESubscription

Handle returned by subscribe(). Call close() to terminate the stream.

interface SSESubscription {
    close: () => void;
    readyState: number;
}

Properties

Properties

close: () => void
readyState: number

Underlying EventSource readyState (0=connecting, 1=open, 2=closed).