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

x/sockets/mod.ts>Server#runTLS

A WebSocket library for Deno.
Latest
method Server.prototype.runTLS
import { Server } from "https://deno.land/x/sockets@v0.5.0/mod.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.