property WebSocketPluginOptions.maxConnections

Maximum number of simultaneously open connections across all routes. 0 (the default) means unlimited. At the limit, further upgrade requests are refused with HTTP 503 before any socket is created.

Type

number

Usage

import { type WebSocketPluginOptions } from "websocket-plugin/src/index.ts";