Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class ConnectionWrap
import { ConnectionWrap } from "https://deno.land/std@0.163.0/node/internal_binding/connection_wrap.ts";

Constructors

new
ConnectionWrap(provider: providerType, object?: Deno.Reader & Deno.Writer & Deno.Closer)

Creates a new ConnectionWrap class instance.

Properties

onconnection: ((status: number, handle?: ConnectionWrap) => void) | null

Optional connection callback.

Methods

afterConnect<T extends AsyncWrap & { oncomplete(
status: number,
req: T,
readable: boolean,
writeable: boolean,
): void; }
>
(req: T, status: number)