This method will connect the class to the server.
async xmpp.connect(user : string, password : string): Promise<void>
The Connect method performs the entire connection routine. This includes connection to the IMServer, user logon and authentication, and session initialization.
The Connected event will fire once for the initial TCP connection and again when the XMPP Logon is complete.