Fix incorrect JID resource with Websockets
Fix incorrect JID resource with Websockets

This commit makes the connect function check the provided JID for a resource. Without this, Candy connects with the default resource of “Candy”, then causes a stream error when sending the first stanza with a from containing the full JID.
cmnisal/candy,who/candy,candy-chat/candy,SweetFruit/Game,candy-chat/candy,SweetFruit/Game,cmnisal/candy,csusantha/candy,cmnisal/candy,who/candy,candy-chat/candy,csusantha/candy,csusantha/candy,who/candy,SweetFruit/Game