UNPKG

@openevstack/ocpp-rpc

Version:

⚡ A lightweight, production-ready RPC server built with Express and WebSocket for handling OCPP-based EV charger communication. Part of the OpenEVStack ecosystem.

10 lines (9 loc) 339 B
import Ajv from "ajv"; export declare class Validator { private _subprotocol; private _ajv; constructor(subprotocol: string, ajv: Ajv); get subprotocol(): string; validate(schemaId: string, params: unknown): boolean; } export declare function createValidator(subprotocol: string, json: Record<string, any>): Validator;