请告诉我如何检索SID和JID。我正在使用Strophe JS。
<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