parent
9007c536ec
commit
e1119968d4
3 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue