Skip to main content
interface Deno.Conn
implements Reader, Writer, Closer

Properties

readonly
localAddr: Addr

The local address of the connection.

readonly
remoteAddr: Addr

The remote address of the connection.

readonly
rid: number

The resource ID of the connection.

readonly
readable: ReadableStream<Uint8Array>
readonly
writable: WritableStream<Uint8Array>

Methods

closeWrite(): Promise<void>

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

Methods

setNoDelay(nodelay?: boolean): void

UNSTABLE: new API, see https://github.com/denoland/deno/issues/13617.

Enable/disable the use of Nagle's algorithm. Defaults to true.

setKeepAlive(keepalive?: boolean): void

UNSTABLE: new API, see https://github.com/denoland/deno/issues/13617.

Enable/disable keep-alive functionality.