I have a connection class that will print a message to the server if the session is connected and logged on
Boolean connected is set to true when socket established.