import Utils from './Utils';
import config from '@/assets/config';
-import { v4 as uuidv4 } from 'uuid';
type ResponseHandler = {
procedureName: ProcedureName;
let uuid: string;
return Utils.promiseWithTimeout(
new Promise((resolve, reject) => {
- uuid = uuidv4();
+ uuid = crypto.randomUUID();
const msg = JSON.stringify([uuid, command, data]);
if (this._ws.readyState !== WebSocket.OPEN) {