闸门连接xmpp明火

闸门连接xmpp明火,xmpp,Xmpp,我们如何通过strophe在openfire中注册用户?我正在openfire中使用注册插件。它工作正常。我正在使用“测试”用户名 但是当我尝试从custom.js连接openfire时 var BOSH_SERVICE = '/xmpp-httpbind' connection = new Strophe.Connection(BOSH_SERVICE); log(connection); connection.rawInput = rawInput; connection.rawOutput

我们如何通过strophe在openfire中注册用户?我正在openfire中使用注册插件。它工作正常。我正在使用“测试”用户名

但是当我尝试从custom.js连接openfire时

var BOSH_SERVICE = '/xmpp-httpbind'
connection = new Strophe.Connection(BOSH_SERVICE);
log(connection);
connection.rawInput = rawInput;
connection.rawOutput = rawOutput;
connection.connect('admin','admin',onConnect); 
响应

Object { service="/xmpp-httpbind",  rid=4209744652,  do_session=false,  more...} gab.js (line 6)
Strophe is connecting. gab.js (line 6)
SENT: <body rid='4209744652' xmlns='http://jabber.org/protocol/httpbind' to='admin' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>gab.js (line 6)
"NetworkError: 500 Internal Server Error - http://localhost/xmpp-httpbind"
Error: 16, ioError, An error occured preventing completion of the request.....throwUnhandledError=function(O){throw new B.Error(O)};G.error=function(R,P,Q,O)...
Object{service=“/xmpp-httpbind”,rid=4209744652,do_session=false,more…}gab.js(第6行)
Strophe正在连接。gab.js(第6行)
发送:gab.js(第6行)
“网络错误:500内部服务器错误-http://localhost/xmpp-httpbind"
错误:16,ioError,发生了一个阻止请求完成的错误…..throwUnhandleError=function(O){throw new B.Error(O)};G.误差=函数(R,P,Q,O)。。。

在这里查看我的答案:你好,海狸,谢谢你的回复。这很有用。你能在strophe中帮助管理新选项卡或页面的会话吗?