javascript - Connect to Prosody XMPP server using Strophe js (CONNFAIL) -


i have prosody server setup @ example.com. can connect bosh service using pidgin url http://example.com:5280/http-bind , on broswer same url replies :

it works! point bosh client url connect prosody.

for more information see prosody: setting bosh.

now trying using following command

new strophe.connection("http://example:5280/http-bind/").connect("admin@example.com", "123456", callback); 

where callback fuction(status) use log connection. status @ callback first strophe.connecting , strophe.connfail .

i have enabled debug log level on prosody , /var/log/prosody/prosody.debug doesn't add new entries (it works fine on pidgin).

also, have fixed proxy adding following lines on apache2 virtualhost

<location /http-bind>     order allow,deny     allow </location> rewriteengine on rewriterule ^/http-bind$ http://example.com:5280/http-bind [p,l] 

i note on pidgin had enable plain-text authentication in order make work , have following setting on /etc/prosody/prosody.cfg.lua (i have more these seem related)

c2s_require_encryption = false s2s_secure_auth = false authentication = "internal_plain" 

and following bosh settings

consider_bosh_secure = true cross_domain_bosh = true 

at first, thought problem encryption, however, since there no log entries lost. have idea problem maybe, think should include more info?

"http://example:5280/http-bind/" not same url "http://example.com:5280/http-bind". should remove trailing slash.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -