refactor: cleanup imports
[e-mobility-charging-stations-simulator.git] / ui / web / src / composables / UIClient.ts
index 056e2ce27cef9ddfb051ece83ee2266acc66339d..22435d49e38e13b5a1460118cbcca3b84d823873 100644 (file)
@@ -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);
     };
   }