@citrineos/util
Version:
The OCPP util module which supplies helpful utilities like cache and queue connectors, etc.
10 lines (9 loc) • 386 B
TypeScript
import { Duplex } from 'stream';
export interface IUpgradeError {
/**
* Terminates the WebSocket connection by sending an error response and closing the socket.
* @param {Duplex} socket - The WebSocket duplex stream.
* @returns {boolean} True if the connection was terminated successfully, false otherwise.
*/
terminateConnection(socket: Duplex): boolean;
}