Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    Index
    socket: ControlSocketLike | null = null
    nextId: number = 1
    pending: Map<
        JsonRpcId,
        {
            resolve: (value: unknown) => void;
            reject: (error: Error) => void;
            timer: Timeout;
        },
    > = ...
    reconnectDelayMs: number = CONTROLLER_RECONNECT_BASE_MS
    reconnectTimer: Timeout | undefined
    disposed: boolean = false
    • Invoke a viewer method and wait for its result.

      Parameters

      • method: string
      • params: unknown[] = []

      Returns Promise<unknown>

    • Invoke a method without waiting.

      What a tile tap uses: the visitor should see the display move, not wait for a round trip, and the authoritative position arrives as an event anyway.

      Parameters

      • method: string
      • params: unknown[] = []

      Returns void