Skip to main content
Module

x/netzo/deno.d.ts>Deno.listenTls

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function Deno.listenTls
allow-net
import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { listenTls } = Deno;

Listen announces on the local transport address over TLS (transport layer security).

const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });

Requires allow-net permission.