Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.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@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { Conn } = Deno;

Properties

localAddr: string

The local address of the connection.

remoteAddr: string

The remote address of the connection.

rid: number

The resource ID of the connection.

Methods

closeRead(): void

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

closeWrite(): void

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