I am trying to run THIS XMPP JS code using ejabbered on server side. Here is my connection code:
$(document).bind('connect', function (ev, data) {
console.log("connect "+JSON.stringify(data));
var conn = new Strophe.Connection("http://localhost:5280/http-bind");
conn.connect(data.jid, data.password, function (status) {
console.log("status"+status);
if (status === Strophe.Status.CONNECTED) {
$(document).trigger('connected');
} else if (status === Strophe.Status.DISCONNECTED) {
$(document).trigger('disconnected');
}
});
Hello.connection = conn;
});
I am getting status = 1
. and after few time later it starts keep showing : Uncaught Error: 11, flXHR::abort(): Failed, The abort() call failed to complete.
my ejabberd is running on http://localhost:5280/admin/
and admin@ejab
is admin user.
--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+unsubscribe@googlegroups.com.
To post to this group, send email to str...@googlegroups.com.
Visit this group at https://groups.google.com/group/strophe.
For more options, visit https://groups.google.com/d/optout.