From: Jérôme Benoit Date: Fri, 13 May 2022 09:39:14 +0000 (+0200) Subject: Refine UI server attributes scope and type X-Git-Tag: v1.1.60~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=18d3414af1e352238e2888687b02d6e2606fb4f9;p=e-mobility-charging-stations-simulator.git Refine UI server attributes scope and type Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ui-server/UIWebSocketServer.ts b/src/charging-station/ui-server/UIWebSocketServer.ts index 98dd52b2..abc3ec67 100644 --- a/src/charging-station/ui-server/UIWebSocketServer.ts +++ b/src/charging-station/ui-server/UIWebSocketServer.ts @@ -10,7 +10,7 @@ import logger from '../../utils/Logger'; export default class UIWebSocketServer extends Server { public readonly chargingStations: Set; - public readonly uiServices: Map; + private readonly uiServices: Map; public constructor(options?: ServerOptions, callback?: () => void) { // Create the WebSocket Server diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index cf534c39..a7b22af6 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -1,5 +1,5 @@ -import { ServerOptions } from 'ws'; import { StorageType } from './Storage'; +import { ServerOptions as WSServerOptions } from 'ws'; import type { WorkerChoiceStrategy } from 'poolifier'; import { WorkerProcessType } from './Worker'; @@ -16,7 +16,7 @@ export interface StationTemplateUrl { export interface UIServerConfiguration { enabled?: boolean; - options?: ServerOptions; + options?: WSServerOptions; } export interface StorageConfiguration {