OptionalcallOptionalcallMilliseconds to wait before unanswered outbound calls are rejected automatically.
OptionaldeferShould connected clients skip sending keep-alive pings if other data is being regularly received? Enabling this option can help reduce data usage (especially on TLS-secured connections), but may cause compatibility issues with some real-world clients as they might treat an absence of pings to mean the connection to the server is lost.
OptionalmaxThe maximum number of non-conforming RPC messages which can be tolerated before the client is automatically closed.
OptionalpingMilliseconds between WebSocket pings to connected clients. Used for keep-alive timeouts.
OptionalprotocolsArray of subprotocols supported by this server. Can be overridden in an auth callback.
OptionalrespondSpecifies whether to send detailed errors (including stack trace) to remote party upon an error being thrown by a handler. This may be undesirable in a production environment as it leaks the call stack of the handler.
OptionalstrictEnable strict validation of calls & responses. Pass an array of subprotocol names to limit strict mode to specific protocols.
OptionalstrictOptional additional validators to be used in conjunction with strictMode.
OptionalwssAdditional WebSocketServer options from the WS library.
The number of concurrent in-flight outbound calls permitted at any one time. Additional calls are queued. There is no concurrency limit imposed on inbound calls. OCPP requires this to be set to
1, but you may choose other values for non-OCPP/custom protocols.