Skip to main content
Module

x/wocket/mod.ts>IOptions

A WebSocket library for Deno
Latest
interface IOptions
import { type IOptions } from "https://deno.land/x/wocket@v1.0.0/mod.ts";

Properties

hostname: string

The hostname to start the websocket server on

port: number

The port to start the websocket server on

protocol: "ws" | "wss"

Protocol for the server

optional
keyFile: string

Path to the key file if using wss

optional
certFile: string

Path to the cert file if using wss

optional
path: string

The path of which this server will handle connections for. Defaults to "/"