UNPKG

@citrineos/base

Version:

The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.

12 lines (11 loc) 489 B
import type { WebsocketServerConfig } from '../../config/types.js'; /** * Interface for the ocpp network connection */ export interface INetworkConnection { bindNetworkHook(): (identifier: string, message: string) => Promise<void>; disconnect(tenantId: number, ocppConnectionName: string): Promise<boolean>; shutdown(): Promise<void>; addWebsocketServer?(websocketServerConfig: WebsocketServerConfig): Promise<void>; reloadTlsCertificates?(serverId: string): void; }