Callback contract used to surface session events to the UI.

interface LogSessionCallbacks {
    onClose: () => void;
    onError: (message: string) => void;
    onHostKeyMismatch?: (
        details: { expected: string; received: string },
    ) => void;
    onLine: (line: string) => void;
    onStatus: (message: string) => void;
}

Properties

onClose: () => void
onError: (message: string) => void
onHostKeyMismatch?: (details: { expected: string; received: string }) => void
onLine: (line: string) => void
onStatus: (message: string) => void