Less logging
This commit is contained in:
parent
2c16116868
commit
984d1e75ec
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue