Connect Method
This method will connect the component to the server.
Syntax
procedure Connect(User: String; Password: String);Remarks
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.
Since Connect is called with a user and password specified, the User and Password properties will updated accordingly.