-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';
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);
};
}