skyfallsin/ruby_bosh — pull request #9 by hamzakc (2012-01-25 14:03:40+00:00)
Title: Add custom resource name to BOSH connection

Hi.

Thanks for a great little library. It has really helped me out in setting up Rails and XMPP.

I needed the ability to set the resource name when initialising the BOSH connection. I have added the simple code to make that happen. You just need to add the name at the end if the jid like so:

me@jabber.org/home

This is the same way Strophe works when creating a connection. I also updated the Readme to include the above example.

Thanks again.

Kind Regards
Hamza Khan-Cheema