interface ConnectionI {
    close: (() => PromiseVow<void>);
    getLocalAddress: (() => string);
    getRemoteAddress: (() => string);
    send: ((packetBytes: string, opts?: Record<string, any>) => PromiseVow<string>);
}

Properties

close: (() => PromiseVow<void>)

Close both ends of the connection

getLocalAddress: (() => string)

Get the locally bound name of this connection

getRemoteAddress: (() => string)

Get the name of the counterparty

send: ((packetBytes: string, opts?: Record<string, any>) => PromiseVow<string>)

Send a packet on the connection