Deno.Conn

interface Conn extends Reader, Writer, Closer {
readonly localAddr: Addr;
readonly readable: ReadableStream<Uint8Array>;
readonly remoteAddr: Addr;
readonly rid: number;
readonly writable: WritableStream<Uint8Array>;
closeWrite(): Promise<void>;
}

§Extends

§Properties

§
readonly localAddr: Addr
[src]

The local address of the connection.

§
readonly readable: ReadableStream<Uint8Array>
[src]
§
readonly remoteAddr: Addr
[src]

The remote address of the connection.

§
readonly rid: number
[src]

The resource ID of the connection.

§
readonly writable: WritableStream<Uint8Array>
[src]

§Methods

§
closeWrite(): Promise<void>
[src]

Shuts down (shutdown(2)) the write side of the connection. Most callers should just use close().