2014-10-09 70 views
0

我在Windows中安裝了OpenFire和Apache,並在OpenFire中創建了兩個用戶us1 & us2。我已經在OpenFire中禁用了匿名登錄。能夠從Pidgin(XMAPP客戶端)登錄的用戶。現在我試圖從Converse.js登錄,在UI中獲得有線響應。OpenFire + Converse.js匿名登錄爲false,身份驗證失敗

這裏是匡威初始化

require(['converse'], function (converse) { 
 
     converse.initialize({ 
 
      allow_otr: true, 
 
      auto_list_rooms: false, 
 
      auto_subscribe: false, 
 
      bosh_service_url: 'http://localhost/httpbind/', // Please use this connection manager only for testing purposes 
 
      hide_muc_server: false, 
 
      i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported 
 
      play_sounds: true, 
 
      prebind: false, 
 
      show_controlbox_by_default: true, 
 
      roster_groups: true 
 
     }); 
 
    });

當我點擊登錄我看到兩個請求將服務器

<body rid='3144306786' xmlns='http://jabber.org/protocol/httpbind' to='us1' 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'/>
和應對
<body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" from="pgi-satishb" authid="655df560" sid="655df560" secure="true" requests="2" inactivity="30" polling="5" wait="60" hold="1" ack="3144306786" maxpause="300" ver="1.6"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features></body>
和明年的要求是

<body rid='3144306787' xmlns='http://jabber.org/protocol/httpbind' sid='655df560' type='terminate'/>
響應

<body xmlns="http://jabber.org/protocol/httpbind" type="terminate"></body>

現在我在黑暗中我,不知道該怎麼辦。

回答