fun isConnected(): Boolean
Returns the connected state (if state is OPEN)
Return True if state is OPEN, false otherwise