UNPKG

@evpower/ocpp-ts

Version:

OCPP 1.6: Open Charge Point Protocol

17 lines (16 loc) 650 B
import EventEmitter from 'events'; import { OutgoingHttpHeaders } from 'http'; import { Protocol } from './Protocol'; export declare class Client extends EventEmitter { private protocolTimeout; private connection; private cpId; private ws; private terminationReason; constructor(cpId: string, protocolTimeout?: number); protected getCpId(): string; protected setConnection(connection: Protocol | null): void; protected callRequest(request: string, payload: any): Promise<any>; protected connect(centralSystemUrl: string, headers?: OutgoingHttpHeaders): void; close(code?: number, reason?: string): void; }