X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomposables%2FUIClient.ts;h=22435d49e38e13b5a1460118cbcca3b84d823873;hb=0f71040c472ecc24460c7bf791c35a9e9fbef27c;hp=056e2ce27cef9ddfb051ece83ee2266acc66339d;hpb=8475b2228f0b36777e1a9528b2d61348facad82f;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index 056e2ce2..22435d49 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -1,5 +1,10 @@ -import { ProcedureName, ResponseStatus, type RequestPayload } from '@/types/UIProtocol'; -import type { ProtocolResponse, ResponsePayload } from '@/types/UIProtocol'; +import { + ProcedureName, + type RequestPayload, + type ResponsePayload, + type ProtocolResponse, + ResponseStatus, +} from '@/types/UIProtocol'; import Utils from './Utils'; import config from '@/assets/config'; @@ -112,10 +117,10 @@ export default class UIClient { config.uiServer.protocol ); this._ws.onmessage = this.responseHandler.bind(this); - this._ws.onerror = errorEvent => { + this._ws.onerror = (errorEvent) => { console.error('WebSocket error: ', errorEvent); }; - this._ws.onclose = closeEvent => { + this._ws.onclose = (closeEvent) => { console.info('WebSocket closed: ', closeEvent); }; }