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', 'app.message',
function(data){ function(data){
ipc.log('got a message from world : '.debug, 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', 'connect',
function(){ function(){
client.trigger('connect'); client.trigger('connect');
client.retriesRemaining=client.config.maxRetries||0; client.retriesRemaining=client.config.maxRetries;
client.log('retrying reset') client.log('retrying reset')
} }
); );
@ -82,10 +82,10 @@ function connect(){
client.socket.on( client.socket.on(
'close', 'close',
function(){ 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( if(
(client.config.maxRetries!==false && !client.config.stopRetrying) || client.retriesRemaining<1 client.config.stopRetrying || client.retriesRemaining<1
){ ){
client.log( client.log(

View file

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