Interface RendererMessaging

interface RendererMessaging {
    receiveMessage?: ((rendererId, message) => Promise<boolean>);
    postMessage(rendererId, message): void;
}

Hierarchy

  • Disposable
    • RendererMessaging

Properties

Methods

Properties

receiveMessage?: ((rendererId, message) => Promise<boolean>)

Method called when a message is received. Should return a boolean indicating whether a renderer received it.

Type declaration

    • (rendererId, message): Promise<boolean>
    • Parameters

      • rendererId: string
      • message: unknown

      Returns Promise<boolean>

Methods