@wailsio/runtime
    Preparing search index...

    Function setTransport

    • Set a custom transport for all Wails runtime calls. This allows you to replace the default HTTP fetch transport with WebSockets, custom protocols, or any other mechanism.

      Parameters

      Returns void

      import { setTransport } from '/wails/runtime.js';

      const wsTransport = {
      call: async (objectID, method, windowName, args) => {
      // Your WebSocket implementation
      }
      };

      setTransport(wsTransport);