onClose
onClose: () => void
onError
onError: (message: string) => void
OptionalonHostKeyMismatch
onHostKeyMismatch?: (details: { expected: string; received: string }) => void
onLine
onLine: (line: string) => void
onStatus
onStatus: (message: string) => void
Callback contract used to surface session events to the UI.