@wailsio/runtime
    Preparing search index...

    Interface RuntimeTransport

    RuntimeTransport defines the interface for custom IPC transport implementations. Implement this interface to use WebSockets, custom protocols, or any other transport mechanism instead of the default HTTP fetch.

    interface RuntimeTransport {
        call(
            objectID: number,
            method: number,
            windowName: string,
            args: any,
        ): Promise<any>;
    }
    Index

    Methods

    Methods

    • Send a runtime call and return the response.

      Parameters

      • objectID: number

        The Wails object ID (0=Call, 1=Clipboard, etc.)

      • method: number

        The method ID to call

      • windowName: string

        Optional window name

      • args: any

        Arguments to pass (will be JSON stringified if present)

      Returns Promise<any>

      Promise that resolves with the response data