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

x/ayonli_jsext/ws.ts>ServerOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface ServerOptions
Re-export
import { type ServerOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/ws.ts";

Options for the WebSocketServer constructor.

Properties

optional
idleTimeout: number

The idle timeout in seconds. The server will close the connection if no messages are received within this time.

NOTE: Currently, this option is only supported in Deno and Bun, in other environments, the option is ignored.

optional
perMessageDeflate: boolean

Whether to enable per-message deflate compression.

NOTE: Currently, this option is only supported in Node.js and Bun, in other environments, the option is ignored.