XMPP.up(account, function() { alert('connected!'); XMPP.send(account,hello!); });