Add connected state to socket_client