A TransportInterface is a generic interface for sending and receiving data on an established incoming connection. It cannot open new connections.

interface TransportInterface {
    close(): Promise<void>;
    onData(listener: ((socket: Channel<Uint8Array>, data: Uint8Array) => void)): Listener;
    supports(type: ChannelType, address?: string): boolean;
    Listener: any;
}

Hierarchy (view full)

Methods