ProcedureName.STATUS_NOTIFICATION,
this.handleStatusNotification.bind(this) as ProtocolRequestHandler
);
+ this.requestHandlers.set(
+ ProcedureName.HEARTBEAT,
+ this.handleHeartbeat.bind(this) as ProtocolRequestHandler
+ );
}
private handleStartChargingStation(uuid: string, payload: RequestPayload): void {
payload
);
}
+
+ private handleHeartbeat(uuid: string, payload: RequestPayload): void {
+ this.sendBroadcastChannelRequest(uuid, BroadcastChannelProcedureName.HEARTBEAT, payload);
+ }
}