@honua/sdk-js
    Preparing search index...

    Type Alias MapDocumentWatchEvent

    MapDocumentWatchEvent:
        | {
            advertised: boolean;
            channel?: string;
            resumedFrom?: MapDocumentRealtimeCheckpoint;
            transport: MapDocumentRealtimeTransportKind;
            type: "connected";
            url?: string;
        }
        | {
            reason?: string;
            reconnectAttempt?: number;
            transport?: MapDocumentRealtimeTransportKind;
            type: "disconnected";
            willReconnect: boolean;
        }
        | {
            fallback: boolean;
            reason: string;
            retryAfterMs?: number;
            type: "stale";
        }
        | {
            error?: unknown;
            mode: MapDocumentRealtimeFallbackMode;
            reason: string;
            type: "fallback";
        }
        | { result: FetchMapDocumentResult; type: "fetched" }
        | { result: FetchMapDocumentResult; type: "unchanged" }
        | {
            applied: boolean;
            diff: MapDocumentDiff | undefined;
            result: FetchMapDocumentResult;
            type: "updated";
        }
        | {
            diff: MapDocumentDiff;
            reason: string;
            result: FetchMapDocumentResult;
            type: "reload-required";
        }
        | { error: unknown; type: "error" }
        | { type: "disposed" }