Interface DialTransportOptions<DialEvents>

An object that contains an AbortSignal as the optional signal property.

Example

const controller = new AbortController()

aLongRunningOperation({
signal: controller.signal
})

// later

controller.abort()
interface DialTransportOptions<DialEvents> {
    onProgress?: ((evt) => void);
    signal?: AbortSignal;
    upgrader: Upgrader;
}

Type Parameters

Hierarchy (view full)

Properties

onProgress?: ((evt) => void)

Type declaration

signal?: AbortSignal
upgrader: Upgrader

The upgrader turns a MultiaddrConnection into a Connection which should be returned by the transport's dial method