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

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.listen

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.listen
allow-read
allow-write
import { Deno } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.unstable.d.ts";
const { listen } = Deno;

UNSTABLE: New API, yet to be vetted.

Listen announces on the local transport address.

const listener = Deno.listen({ path: "/foo/bar.sock", transport: "unix" })

Requires allow-read and allow-write permission.

Parameters

options: UnixListenOptions & { transport: "unix"; }

Returns

Listener