I'm having problems in how to get the SID and the RID after I connect to my jabber server using the XMPP4r gem. I can connect successfully and I just need the SID and RID to pass it to the javascript.
I've searched the docs here but it hasn't helped me much.
Any help or suggestions will be much appreciated. Thanks!
Just in case anyone else would encounter the same roadblock in the future, I solved this by accessing the instance variables directly like so:
First, require the httpbinding client, instead of client
then connect by doing
The instance variables are @http_sid and @http_rid, and since they are not accessible I did
Then I stored those variables in my session so that I can use them on my Strophe.js client.