This method will add a user information field for registration.
async xmpp.setUserInfoField(field : string, value : string): Promise<void>
Before a registration can be attempted, the application should use the QueryRegister method to poll the host to which the user wishes to register. This will gather all of the necessary fields that the user must send to the server, and will populate the UserInfo properties accordingly. After a successful query, all entries in UserInfo values will be empty strings.
The possible registration fields are defined in the Jabber protocol specification as follows:
|Special instructions sent from the server.
|The username to be associated with this account.
|The initial password for this account.
|The user's name.
|The user's email address.
|The user's physical address.
|The user's city of residence.
|The user's state (for United States citizens).
|The user's postal code (for United States citizens).
|The user's phone number.
|The user's website.
|The date of registration.
|Any miscellaneous data.
|Any extra text (potentially for a personal bio).
|Specifies a request to unregister.
If the class is not already connected when this method is called, it will connect, poll the registration fields, and then disconnect.