@echecs/uci - v4.2.0
    Preparing search index...

    Interface EngineProcess

    A running engine process. Implement this interface to run engines outside Node.js (e.g. in Tauri via its shell plugin) and inject the instance through new UCI(path, { process }).

    interface EngineProcess {
        kill(): void;
        onError(listener: (error: Error) => void): void;
        onExit(listener: (code: number) => void): void;
        onStdout(listener: (data: string) => void): void;
        write(input: string): Promise<void>;
    }
    Index
    • Parameters

      • listener: (error: Error) => void

      Returns void

    • Parameters

      • listener: (code: number) => void

      Returns void

    • Parameters

      • listener: (data: string) => void

      Returns void

    • Parameters

      • input: string

      Returns Promise<void>