[Pkg-javascript-commits] [ltx] 156/469: client: don't forget startParser() & startStream() when connecting directly (opposed to via SRV)
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:01:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 11b6eb1392a4eff4d11c982479aec614e95a8c5a
Author: Astro <astro at spaceboyz.net>
Date: Fri Oct 15 19:26:11 2010 +0200
client: don't forget startParser() & startStream() when connecting directly (opposed to via SRV)
---
lib/xmpp/client.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/xmpp/client.js b/lib/xmpp/client.js
index 40b0501..ad0f157 100644
--- a/lib/xmpp/client.js
+++ b/lib/xmpp/client.js
@@ -47,6 +47,10 @@ function Client(params) {
if (params.host) {
this.socket.connect(params.port || 5222, params.host);
+ this.socket.on('connect', function() {
+ self.startParser();
+ self.startStream();
+ });
} else {
var attempt = SRV.connect(this.socket,
['_xmpp-client._tcp'], this.jid.domain, 5222);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list