I have installed ejabberd on my machine and its running fine.
localhost:5280/admin
localhost:5280/http-bind
It is also displaying "ejabberd mod_http_bind An implementation of XMPP over BOSH (XEP-0206)" I guess it's working fine.
When I try to create a connection with Strophe I get the connection status as CONNFAIL
.
My code goes as follow :
var conn = new Strophe.Connection('http://localhost:5280/http-bind');
conn.connect(data.jid, data.password, function (status) {
// jid=user@localhost
if(status===Strophe.Status.CONNECTING){
alert('connecting...!!');
}
if(status===Strophe.Status.AUTHFAIL){
alert('auth failure...!!');
}
if(status===Strophe.Status.CONNFAIL){
alert('connection falied !!');
}}
I keep getting CONNFAIL
.
I have also added proxypass forhttp://localhost:5280/http-bind
in apache httpd.conf file.
I am not able to figure out what is the problem.