code: func (a *Agent) connectedTo(proxy services.Server) bool {
  	principals := a.getPrincipals()
  	proxyID := fmt.Sprintf("%v.%v", proxy.GetName(), a.ClusterName)
  	if _, ok := principals[proxyID]; ok {
  		return true
  	}
  	return false
  }
docs: // connectedTo returns true if connected services.Server passed in.