通过django中的strophe连接到ejabberd
我正在尝试连接到ejabberd。ejabberd的版本是18。我换了ejabberd.yml 模块:ejabberd_http通过django中的strophe连接到ejabberd,django,ejabberd,strophe,Django,Ejabberd,Strophe,我正在尝试连接到ejabberd。ejabberd的版本是18。我换了ejabberd.yml 模块:ejabberd_http request_handlers: "/ws": ejabberd_http_ws "/bosh": mod_bosh "/api": mod_http_api ## "/pub/archive": mod_http_fileserver web_admin: true http_bind: true http_poll: true ## registe
request_handlers:
"/ws": ejabberd_http_ws
"/bosh": mod_bosh
"/api": mod_http_api
## "/pub/archive": mod_http_fileserver
web_admin: true
http_bind: true
http_poll: true
## register: true
captcha: true
当我使用strophe通过
var conn = new Strophe.Connection('http://localhost:5280/http-bind');
它表示连接尝试失败和连接超时
有什么解决办法吗
var conn=新选通连接(“”)
您正在请求“/http绑定”路径,但ejabberd正在“/bosh”中侦听。更改您的quety,或更改为config,以便这些路径匹配