diff --git a/dist/peer.js b/dist/peer.js index 6916c94..05ab567 100644 --- a/dist/peer.js +++ b/dist/peer.js @@ -53,7 +53,7 @@ class Peer { self._socket.emit("data", m); }, async onclose() { - self._socket?.end(); + self._socket?.destroy(); await self._onclose?.(self._socket); }, });