import { RawData } from 'ws';
import BaseError from '../../../exception/BaseError';
+import { Bootstrap } from '../../../internal';
import { JsonType } from '../../../types/JsonType';
import {
ProcedureName,
ResponseStatus,
} from '../../../types/UIProtocol';
import logger from '../../../utils/Logger';
-import Utils from '../../../utils/Utils';
-import Bootstrap from '../../Bootstrap';
import UIServiceWorkerBroadcastChannel from '../../UIServiceWorkerBroadcastChannel';
-import { AbstractUIServer } from '../AbstractUIServer';
+import type { AbstractUIServer } from '../AbstractUIServer';
const moduleName = 'AbstractUIService';
const data = JSON.parse(rawData.toString()) as JsonType[];
- if (Utils.isIterable(data) === false) {
- throw new BaseError('UI protocol request is not iterable');
+ if (Array.isArray(data) === false) {
+ throw new BaseError('UI protocol request is not an array');
}
if (data.length !== 3) {