Fray Electron
    Preparing search index...

    Renderer-thread IPC facade; routing/queueing runs in a dedicated message worker.

    Index
    • Starts the message worker, forwards bridge frames, and installs shutdown hooks.

      Parameters

      • bridge: FrayBridge

        Electron preload bridge used for frame transport and runtime status.

      • onMessage: (message: IncomingMessage<Uint8Array<ArrayBufferLike>>) => void

        Callback for frames routed to this renderer.

      • onReady: () => void = ...

        Called when the message worker initializes.

      • onPeerReady: (kind: number, id: number) => void = ...

        Called when a peer becomes ready.

      Returns IPCManager

      Starts a Worker and heartbeat timer; setup does not wait for peers.

    • Stops the renderer worker and removes bridge listeners once shutdown completes.

      Returns Promise<void>

      Shared promise for completed shutdown.

      Stops heartbeat and awaits the worker stopped acknowledgement; idempotent while closing.

    • Transfers a frame to the router worker and returns immediately.

      Parameters

      • frame: Uint8Array

        Encoded frame bytes.

      Returns void

      Copies/transfers bytes to the worker, which sends when the destination is ready or ttl expires; no response is awaited.