mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-28 18:30:39 +00:00
Less logging
This commit is contained in:
+3
-3
@@ -105,10 +105,10 @@ class SnapdropServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_send(peer, message) {
|
_send(peer, message) {
|
||||||
if (!peer) return console.error('undefined peer');
|
if (!peer) return;
|
||||||
if (this._wss.readyState !== this._wss.OPEN) return console.error('Socket is closed');
|
if (this._wss.readyState !== this._wss.OPEN) return;
|
||||||
message = JSON.stringify(message);
|
message = JSON.stringify(message);
|
||||||
peer.socket.send(message, error => error ? console.log(error): '');
|
peer.socket.send(message, error => '');
|
||||||
}
|
}
|
||||||
|
|
||||||
_keepAlive(peer) {
|
_keepAlive(peer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user