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

x/deno/ext/net/lib.deno_net.d.ts>Deno.TlsConn

A modern runtime for JavaScript and TypeScript.
Latest
interface Deno.TlsConn
implements Conn<NetAddr>
import { type Deno } from "https://deno.land/x/deno@v2.0.4/ext/net/lib.deno_net.d.ts";
const { TlsConn } = Deno;

Methods

handshake(): Promise<TlsHandshakeInfo>

Runs the client or server handshake protocol to completion if that has not happened yet. Calling this method is optional; the TLS handshake will be completed automatically as soon as data is sent or received.