Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.ns.d.ts>Deno.Conn

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.Conn
implements Reader, Writer, Closer
import { type Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.ns.d.ts";
const { Conn } = Deno;

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.

Methods

closeWrite(): void

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

Unstable because of lack of testing and because Deno.shutdown is also unstable.