Bound most called methods in the OCPP stack
[e-mobility-charging-stations-simulator.git] / src / charging-station / ui-server / AbstractUIServer.ts
index 2608e83443a8bfcfd43a68a93c6074f50f0f0272..432c91e7140916089fc393430ae1922e5e2baf31 100644 (file)
@@ -1,12 +1,14 @@
-import AbstractUIService from './ui-services/AbstractUIService';
 import { Server as HttpServer } from 'http';
+
+import WebSocket from 'ws';
+
 import { ProtocolVersion } from '../../types/UIProtocol';
-import { Server as WSServer } from 'ws';
+import AbstractUIService from './ui-services/AbstractUIService';
 
 export abstract class AbstractUIServer {
   public readonly chargingStations: Set<string>;
   protected readonly uiServices: Map<ProtocolVersion, AbstractUIService>;
-  protected uiServer: WSServer | HttpServer;
+  protected server: WebSocket.Server | HttpServer;
 
   public constructor() {
     this.chargingStations = new Set<string>();