I am trying to the get the values of SID, RID and JID from the strophe connection and trying to pass them to converse.js. I am running the example that comes with strophe and I am able to get the message with all the values but i can not retrieve the values from the element.
<body rid='629033749' xmlns='http://jabber.org/protocol/httpbind' sid='c270b6b5' to='127.0.0.1' xml:lang='en' xmpp:restart='true' xmlns:xmpp='urn:xmpp:xbosh'/>
I have tried connection.sid but returns as undefined. Can some one help me with this please?