X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIWebSocketServer.ts;h=29a6567549105a7cc8e202b9249c99c8fa6b4200;hb=4c3f6c20f9416e148a3d26b6a06acc13274ab469;hp=1e1a372c698a941365df864aac280aa3bb32778c;hpb=84ec8d3464903cfa8259ff622bff2b19b5c47132;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIWebSocketServer.ts b/src/charging-station/ui-server/UIWebSocketServer.ts index 1e1a372c..29a65675 100644 --- a/src/charging-station/ui-server/UIWebSocketServer.ts +++ b/src/charging-station/ui-server/UIWebSocketServer.ts @@ -4,12 +4,6 @@ import type { Duplex } from 'node:stream' import { StatusCodes } from 'http-status-codes' import { type RawData, WebSocket, WebSocketServer } from 'ws' -import { AbstractUIServer } from './AbstractUIServer.js' -import { - getProtocolAndVersion, - handleProtocols, - isProtocolAndVersionSupported -} from './UIServerUtils.js' import { type ProtocolRequest, type ProtocolResponse, @@ -18,13 +12,19 @@ import { } from '../../types/index.js' import { Constants, - JSONStringifyWithMapSupport, getWebSocketCloseEventStatusString, isNotEmptyString, - logPrefix, + JSONStringifyWithMapSupport, logger, + logPrefix, validateUUID } from '../../utils/index.js' +import { AbstractUIServer } from './AbstractUIServer.js' +import { + getProtocolAndVersion, + handleProtocols, + isProtocolAndVersionSupported +} from './UIServerUtils.js' const moduleName = 'UIWebSocketServer'