import { type RawData, WebSocket, WebSocketServer } from 'ws'
import {
+ MapStringifyFormat,
type ProtocolRequest,
type ProtocolResponse,
type UIServerConfiguration,
Constants,
getWebSocketCloseEventStatusString,
isNotEmptyString,
- JSONStringifyWithMapSupport,
+ JSONStringify,
logger,
logPrefix,
validateUUID
if (this.hasResponseHandler(responseId)) {
const ws = this.responseHandlers.get(responseId) as WebSocket
if (ws.readyState === WebSocket.OPEN) {
- ws.send(JSONStringifyWithMapSupport(response))
+ ws.send(JSONStringify(response, undefined, MapStringifyFormat.object))
} else {
logger.error(
`${this.logPrefix(