Comparing version 0.9.9 to 0.9.10
@@ -166,3 +166,3 @@ /** | ||
client.num_reties = 0; | ||
inst.emit('connected'); | ||
setTimeout(()=>inst.emit('connected'), 0); | ||
}) | ||
@@ -172,4 +172,4 @@ .on('_event', (event, arg)=>inst.emit(event, arg)) | ||
client.num_reties++; | ||
if ( !client.auto_reconnect || (client.retry_count > 0 && client.num_reties > client.retry_count) ) { | ||
inst.emit('disconnected!'); | ||
if ( !client.auto_reconnect || client.retry_count <= 0 || client.num_reties > client.retry_count ) { | ||
inst.emit('disconnected'); | ||
return; | ||
@@ -176,0 +176,0 @@ } |
{ | ||
"name": "ipevt", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"description": "A small library that allows peers to communicate via a central server", | ||
@@ -5,0 +5,0 @@ "main": "ipevt-client.js", |
49072