Permalink
Browse files

fixes issue sending presence and bumps version

  • Loading branch information...
1 parent 6e88a22 commit 9141efc72a6dd8f61c3d67135ac51eaeb0f5fa86 @c4milo c4milo committed Jan 10, 2012
@@ -81,7 +81,8 @@ util.inherits(Connection, EventEmitter);
console.log('connection closed with error!');
console.log('initiating reconnection algorithm...');
//TODO Reconnections http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html
- //TODO use circular queue to not lose packets when disconnected.
+ //TODO use circular queue to reduce the amount
+ //packets being lost when disconnected.
} else {
self.connected = false;
self.emit('disconnect');
@@ -93,7 +93,7 @@ util.inherits(Swarm, EventEmitter);
stanza.presence.type = type;
}
- this.conn.send(presence);
+ this.conn.send(stanza);
}
this.join = function(swarms) {
@@ -1,7 +1,7 @@
{
"name": "bugswarm-prt",
"description": "[Participation] BUGswarm is platform that allows you to share and access your hardware sensor data easily and effortlessly.",
- "version": "0.1.5",
+ "version": "0.1.6",
"keywords" : [ "m2m", "IoT", "realtime", "messaging", "sensor", "hardware", "socket", "configuration"],
"homepage": "http://developer.bugswarm.net",
"author": "BugLabs Inc.",

0 comments on commit 9141efc

Please sign in to comment.