Skip to main content
Deno.listenTls - Deno documentation
function Deno.listenTls
allow-net
listenTls(options: ListenTlsOptions & TlsCertifiedKeyPem): TlsListener

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

using listener = Deno.listenTls({
  port: 443,
  cert: Deno.readTextFileSync("./server.crt"),
  key: Deno.readTextFileSync("./server.key"),
});

Requires allow-net permission.

Parameters

Return Type

Back to top