Interface MultiaddrConnection

A MultiaddrConnection is returned by transports after dialing a peer. It is a low-level primitive and is the raw connection without encryption or stream multiplexing.

interface MultiaddrConnection {
    log: Logger;
    remoteAddr: Multiaddr;
    sink: Sink<AsyncGenerator<Uint8Array | Uint8ArrayList, any, unknown>, unknown>;
    source: AsyncGenerator<Uint8Array | Uint8ArrayList, any, unknown>;
    timeline: MultiaddrConnectionTimeline;
    abort(err): void;
    close(options?): Promise<void>;
}

Hierarchy

Properties

log: Logger

The multiaddr connection logger

remoteAddr: Multiaddr

The address of the remote end of the connection

sink: Sink<AsyncGenerator<Uint8Array | Uint8ArrayList, any, unknown>, unknown>
source: AsyncGenerator<Uint8Array | Uint8ArrayList, any, unknown>

When connection lifecycle events occurred

Methods