Skip to content

Commit

Permalink
Merge pull request #7 from sammy44nts/master
Browse files Browse the repository at this point in the history
Patching
  • Loading branch information
mwild1 committed Apr 23, 2015
2 parents 32cb043 + 8228d33 commit 956cab0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion examples/echo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var jid = "echo.localhost", password = "hellohello";
var xmpp = require("../lib/xmpp");
var conn = new xmpp.Connection();
var sys = require("sys");

conn.connect(jid, password, function (status, condition) {
if(status == xmpp.Status.CONNECTED)
Expand Down
6 changes: 4 additions & 2 deletions lib/xmpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ exports.Connection.prototype = {
// afterward, but should be kept in mind should any arise.
this.socket = net.createConnection({ port: this.port, host: this.host },
recontext(this, conn._socket_connected))
this.socket.on("end", recontext(this, conn._socket_disconnected));
this.socket.on("data", recontext(this, conn._socket_received));
this.socket
.on("error", recontext(this, conn.error))
.on("end", recontext(this, conn._socket_disconnected))
.on("data", recontext(this, conn._socket_received));

this.handlers = [];

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
],
"repository" : {
"type" : "git",
"url" : "https://github.com/SammyEpitech/xmppjs.git"
"url" : "https://github.com/sammy44nts/xmppjs.git"
}
}
}

0 comments on commit 956cab0

Please sign in to comment.