property SseClientOptions.onStateChange Receives each state transition. Type (state: SseClientState) => void