ipc: remove debug logs

This commit is contained in:
jean-emmanuel 2018-02-08 23:23:36 +01:00
parent a582bb2040
commit 497e69554f
2 changed files with 1 additions and 3 deletions

View file

@ -18,7 +18,6 @@ class Socket extends EventEmitter {
this.hearbeat = undefined
this.hearbeatTimeout = undefined
this.on('pong', ()=>{
console.log('pong received')
this.hearbeatTimeout = clearTimeout(this.hearbeatTimeout)
})
this.on('ping', ()=>{
@ -52,7 +51,6 @@ class Socket extends EventEmitter {
this.dieTimeout = clearTimeout(this.dieTimeout)
this.hearbeat = setInterval(()=>{
console.log('ping sent')
this.socket.send(`["ping"]`)
this.hearbeatTimeout = setTimeout(()=>{
this.socket.close()

View file

@ -23,10 +23,10 @@ class Ipc extends EventEmitter {
var client = new Client(socket, id)
this.clients[id] = client
this.emit('connection', client)
client.on('close', ()=>{
console.log('client died for real')
delete this.clients[id]
})