This commit is contained in:
Brandon Nozaki Miller 2015-08-22 23:16:20 -07:00
parent 9007c536ec
commit e1119968d4
3 changed files with 6 additions and 5 deletions

View file

@ -36,8 +36,9 @@ ipc.connectTo(
'app.message',
function(data){
ipc.log('got a message from world : '.debug, data);
ipc.disconnect('world');
}
);
console.log(ipc.of.world.destroy);
}
);

View file

@ -74,7 +74,7 @@ function connect(){
'connect',
function(){
client.trigger('connect');
client.retriesRemaining=client.config.maxRetries||0;
client.retriesRemaining=client.config.maxRetries;
client.log('retrying reset')
}
);
@ -82,10 +82,10 @@ function connect(){
client.socket.on(
'close',
function(){
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.retriesRemaining+' of '+client.config.maxRetries);
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.retriesRemaining+' tries remaining of '+client.config.maxRetries);
if(
(client.config.maxRetries!==false && !client.config.stopRetrying) || client.retriesRemaining<1
client.config.stopRetrying || client.retriesRemaining<1
){
client.log(

View file

@ -34,7 +34,7 @@ var defaults={
silent : false,
maxConnections : 100,
retry : 500,
maxRetries : false,
maxRetries : Infinity,
stopRetrying : false,
IPType : IPType
}