PostMessage RPC API Documentation - v0.2.2
    Preparing search index...

    Interface MessageChannel<T, U>

    Typed bidirectional communication channel for sending messages between windows

    interface MessageChannel<T, U> {
        send(payload: T, opts?: { msgId?: string }): Success;
        sendAndWait(payload: T): Promise<SuccessResult<U>>;
    }

    Type Parameters

    • T
    • U
    Index

    Methods

    • Send a message without waiting for answer, success result only means we sent the message

      Parameters

      • payload: T
      • Optionalopts: { msgId?: string }

      Returns Success