import { IncomingMessage } from 'http';
import UIServiceFactory from './ui-websocket-services/UIServiceFactory';
import Utils from '../utils/Utils';
import { IncomingMessage } from 'http';
import UIServiceFactory from './ui-websocket-services/UIServiceFactory';
import Utils from '../utils/Utils';
export default class UIWebSocketServer extends Server {
public readonly chargingStations: Set<string>;
export default class UIWebSocketServer extends Server {
public readonly chargingStations: Set<string>;
throw new BaseError('UI protocol request is not iterable');
}
this.uiServices.get(version).handleMessage(command, payload).catch(() => {
throw new BaseError('UI protocol request is not iterable');
}
this.uiServices.get(version).handleMessage(command, payload).catch(() => {
- logger.error(`${this.logPrefix()} Error while handling command %s message: %j`, command, payload);
+ getLogger().error(`${this.logPrefix()} Error while handling command %s message: %j`, command, payload);