Type Alias Connection<TCallSender>

Connection<TCallSender>: {
    destroy: Function;
    promise: Promise<AsyncMethodReturns<TCallSender>>;
}

Connection object returned from calling connectToChild or connectToParent.

Type Parameters

Type declaration

  • destroy: Function

    A method that, when called, will disconnect any messaging channels. You may call this even before a connection has been established.

  • promise: Promise<AsyncMethodReturns<TCallSender>>

    A promise which will be resolved once a connection has been established.