- public constructor(options?: ServerOptions, callback?: () => void) {
- // Create the WebSocket Server
- super(options ?? Configuration.getUIServer().options, callback);
- this.chargingStations = new Set<string>();
- this.uiServices = new Map<ProtocolVersion, AbstractUIService>();
+export default class UIWebSocketServer extends AbstractUIServer {
+ public constructor(options?: ServerOptions) {
+ super();
+ this.server = new WebSocket.Server(options ?? Configuration.getUIServer().options);