} from '../../types/index.js'
import {
Constants,
+ JSONStringifyWithMapSupport,
getWebSocketCloseEventStatusString,
isNotEmptyString,
logPrefix,
if (this.hasResponseHandler(responseId)) {
const ws = this.responseHandlers.get(responseId) as WebSocket
if (ws.readyState === WebSocket.OPEN) {
- ws.send(JSON.stringify(response))
+ ws.send(JSONStringifyWithMapSupport(response))
} else {
logger.error(
`${this.logPrefix(