import { type Deno } from "https://deno.land/x/deno@v1.39.0/ext/net/lib.deno_net.d.ts";
const { Conn } = Deno;
Properties
readonly
localAddr: AddrThe local address of the connection.
readonly
remoteAddr: AddrThe remote address of the connection.
readonly
readable: ReadableStream<Uint8Array>readonly
writable: WritableStream<Uint8Array>Methods
Shuts down (shutdown(2)
) the write side of the connection. Most
callers should just use close()
.
UNSTABLE: New API, yet to be vetted.
Make the connection block the event loop from finishing.
Note: the connection blocks the event loop from finishing by default.
This method is only meaningful after .unref()
is called.