From 42cd101fb29a4a1f7451ab6251e9bd89e7a51145 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 31 Aug 2023 02:25:52 -0400 Subject: [PATCH] fix: pass the event data, not the event itself --- src/peer/webSocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer/webSocket.ts b/src/peer/webSocket.ts index 3e8826b..d0a5d56 100644 --- a/src/peer/webSocket.ts +++ b/src/peer/webSocket.ts @@ -44,7 +44,7 @@ export class WebSocketPeer implements Peer { this._socket.addEventListener( "message", async (event: MessageEvent) => { - await callback(event); + await callback(event.data); }, );