ReadonlyclientsConnections completed by the server (empty when using upgrade).
Stops accepting new connections and removes the endpoint. Called automatically when the plugin stops, which also terminates any connected clients.
Optionalcb: (err?: Error) => voidEmitted with each WebSocket connection after the server has completed
the handshake. Not emitted when an upgrade listener is attached.
Escape hatch for plugins that need the raw HTTP upgrade — typically
to hand it to a reverse proxy. When at least one upgrade listener is
attached the plugin handles the upgrade entirely itself: the server
does not complete the handshake and connection is never emitted.
The arguments match Node.js's http.Server upgrade event.
A WebSocket endpoint under the plugin's route, returned by ServerAPI.registerWebSocket. A subset of ws's
WebSocketServer.