3
請告訴我如何檢索SID和JID。我正在使用Strophe JS。XMPP:檢索BOSH會話ID和RID
<body rid='489923353' xmlns='http://jabber.org/protocol/httpbind' sid='ab7f5957' to='127.0.0.1' xml:lang='en' xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/>
var conn = new Strophe.Connection(bosh_service);
然而,conn.sid或conn.rid沒有返回相同的數字。
使用上面的代碼我得到'connection.sid'和'connection.rid'的未定義值 – Hunt