fix: pass the event data, not the event itself

This commit is contained in:
Derrick Hammer 2023-08-31 02:25:52 -04:00
parent 132f43c34b
commit 42cd101fb2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ export class WebSocketPeer implements Peer {
this._socket.addEventListener( this._socket.addEventListener(
"message", "message",
async (event: MessageEvent<any>) => { async (event: MessageEvent<any>) => {
await callback(event); await callback(event.data);
}, },
); );