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

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

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

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

Parameters

options: HTTPOptions
  • See HTTPOptions.

Returns

Promise<DenoServer>

A Promise of DenoServer.