interface Upgrader {
    createInboundAbortSignal(signal): ClearableSignal;
    getConnectionEncrypters(): Map<string, ConnectionEncrypter<unknown>>;
    getStreamMuxers(): Map<string, StreamMuxerFactory>;
    upgradeInbound(maConn, opts?): Promise<void>;
    upgradeOutbound(maConn, opts?): Promise<Connection>;
}

Methods

  • Used by transports that perform part of the upgrade process themselves and do some async work. This allows configuring inbound upgrade timeouts from a single location.

    Regular transports should just pass the signal from their shutdown controller to upgradeInbound.

    Parameters

    Returns ClearableSignal