property SseClientOptions.onStateChange

Receives each state transition.

Type

(state: SseClientState) => void

Usage

import { type SseClientOptions } from "sdk/src/index.ts";