fix: pass the event data, not the event itself
This commit is contained in:
parent
132f43c34b
commit
42cd101fb2
|
@ -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);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue