@evpower/ocpp-ts
Version:
OCPP 1.6: Open Charge Point Protocol
14 lines (13 loc) • 639 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { SecureContextOptions } from 'tls';
import { IncomingMessage } from 'http';
import { Server } from './impl/Server';
import { OcppClientConnection } from './OcppClientConnection';
export declare class OcppServer extends Server {
setPingInterval(pingInterval: number): void;
listen(port?: number, options?: SecureContextOptions): void;
close(): void;
on(event: 'authorization', listener: (cpId: string, req: IncomingMessage, cb: (err?: Error) => void) => void): this;
on(event: 'connection', listener: (client: OcppClientConnection) => void): this;
}