ipc: remove debug logs
This commit is contained in:
parent
73bc2e4187
commit
5278bebb50
2 changed files with 1 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue