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.

7 lines (6 loc) 359 B
export type QueueTask<T = any> = { fn: () => Promise<T>; resolve: (value: T | PromiseLike<T>) => void; reject: (reason?: any) => void; }; export type AuthCallback = (accept: (session?: Record<string, any>, protocol?: string) => void, reject: (code?: number, message?: string) => void, handshake: any, signal: AbortSignal) => void | Promise<void>;