A libp2p transport is understood as something that offers a dial and listen interface to establish connections.

interface Transport {
    [toStringTag]: string;
    [transportSymbol]: true;
    dialFilter: MultiaddrFilter;
    listenFilter: MultiaddrFilter;
    createListener(options): Listener;
    dial(ma, options): Promise<Connection>;
}

Properties

[toStringTag]: string

Used to identify the transport

[transportSymbol]: true

Used by the isTransport function

dialFilter: MultiaddrFilter

Takes a list of Multiaddrs and returns only addresses that are vali for the transport to dial

listenFilter: MultiaddrFilter

Takes a list of Multiaddrs and returns only addresses that are valid for the transport to listen on

Methods