Deno.Conn
interface Conn
extends Reader, Writer, Closer {
readonly localAddr
: Addr;
readonly readable
: ReadableStream<Uint8Array>;
readonly remoteAddr
: Addr;
readonly rid
: number;
readonly writable
: WritableStream<Uint8Array>;
closeWrite()
: Promise<void>;
}
Properties
readonly localAddr
: Addr
The local address of the connection.
readonly readable
: ReadableStream<Uint8Array>
readonly remoteAddr
: Addr
The remote address of the connection.
readonly rid
: number
The resource ID of the connection.
readonly writable
: WritableStream<Uint8Array>
Methods
closeWrite()
: Promise<void>
Shuts down (shutdown(2)
) the write side of the connection. Most callers should just use close()
.
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.Conn