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); }, );