Deno.Conn

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

§Extends

§
Disposable
[src]

§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().

§
ref(): void
[src]

UNSTABLE: New API, yet to be vetted.

Make the connection block the event loop from finishing.

Note: the connection blocks the event loop from finishing by default. This method is only meaningful after .unref() is called.

§
unref(): void
[src]

UNSTABLE: New API, yet to be vetted.

Make the connection not block the event loop from finishing.