Hi, I have just started to use your XIFF classes and they are great. Could somebody please inform me how to register a new account.
I have tried using the XMPPConnection.sendRegistrationFields() method. But I don’'t understand what I need to pass as the object map, in attribute:value pairs, is this usermame,password and server??
this is the sort of thing i have been trying
var XMPPConnection = new XMPPConnection();
XMPPConnection.username = “myusername”;
XMPPConnection.password = “mypassword”;
XMPPConnection.server = “jabber.org”;
eventHandler = new Object();
eventHandler.handleEvent = function(eventObj) {
trace(eventObj.type);
// Do registration
};
connection.addEventListener(“registrationFields”, eventHandler);
XMPPConnection.sendRegistrationFields()