From 7f3c03eaab08e86d7332532a7b2642d5fd789976 Mon Sep 17 00:00:00 2001 From: David Khourshid Date: Mon, 13 May 2024 19:32:46 -0400 Subject: [PATCH] Fix types --- src/webSocket.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/webSocket.ts b/src/webSocket.ts index aea8dbf..56b802c 100644 --- a/src/webSocket.ts +++ b/src/webSocket.ts @@ -36,14 +36,9 @@ export class WebSocketAdapter implements Adapter { console.log('websocket open'); this.status = 'open'; this.deferredEvents.forEach((inspectionEvent) => { - const preSerializedEvent = defaultInspectorOptions.serialize( - inspectionEvent, - inspectionEvent - ); - const serializedEvent = this.options.serialize( - preSerializedEvent, - inspectionEvent - ); + const preSerializedEvent = + defaultInspectorOptions.serialize(inspectionEvent); + const serializedEvent = this.options.serialize(preSerializedEvent); this.ws.send(safeStringify(serializedEvent)); }); };