Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sockets/src/server.ts>Server#runTLS

A WebSocket library for Deno.
Latest
method Server.prototype.runTLS
import { Server } from "https://deno.land/x/sockets@v0.5.0/src/server.ts";

Handles websocket secure connection. After a successful connection, the client will be added to EventEmitter.clients and the server will start listening to events.

Parameters

options: HTTPSOptions
  • See HTTPOptions.

Returns

Promise<DenoServer>

A Promise of the DenoServer.