Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xdg/vendor/types/deno.d.ts>Deno.Conn

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
interface Deno.Conn
implements Reader, Writer, Closer
import { type Deno } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.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(): Promise<void>

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