Connection failure when using strophe with ejabberd bosh to connect to jid account on localhost
问题 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