getState method

Returns the state of the connection.

 Syntax
 Remarks