Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 3ce2313c5a
*Update dist 2023-02-16 01:02:20 -05:00
Derrick Hammer 47c93b1f1a
*need to use socket destroy 2023-02-16 01:02:00 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/peer.js vendored
View File

@ -53,7 +53,7 @@ class Peer {
self._socket.emit("data", m);
},
async onclose() {
self._socket?.end();
self._socket?.destroy();
await self._onclose?.(self._socket);
},
});

View File

@ -90,7 +90,7 @@ export default class Peer {
self._socket.emit("data", m);
},
async onclose() {
self._socket?.end();
self._socket?.destroy();
await self._onclose?.(self._socket);
},
});