From a6bf4857dd857562ce58392202e1199f6396fb02 Mon Sep 17 00:00:00 2001 From: dacapoday Date: Thu, 9 Jun 2022 11:26:11 +0800 Subject: [PATCH] fix WSPeer whether WSPeer inherits from Peer as well as RTCPeer? --- client/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/network.js b/client/scripts/network.js index eb59901..ed958ce 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -413,7 +413,7 @@ class PeersManager { } -class WSPeer { +class WSPeer extends Peer { _send(message) { message.to = this._peerId; this._server.send(message);