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

x/deno/cli/js/net.ts>ConnImpl

A modern runtime for JavaScript and TypeScript.
Go to Latest
class ConnImpl
implements Conn
import { ConnImpl } from "https://deno.land/x/deno@v0.28.0/cli/js/net.ts";

Constructors

new
ConnImpl(
rid: number,
remoteAddr: string,
localAddr: string,
)

Methods

close(): void
closeRead(): void

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

closeWrite(): void

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

read(p: Uint8Array): Promise<number | EOF>
write(p: Uint8Array): Promise<number>