code: func (cm *rpcConnManager) ConnectedPeers() []rpcserverPeer {
  	replyChan := make(chan []*serverPeer)
  	cm.server.query <- getPeersMsg{reply: replyChan}
  	serverPeers := <-replyChan
  
  	// Convert to RPC server peers.
  	peers := make([]rpcserverPeer, 0, len(serverPeers))
  	for _, sp := range serverPeers {
  		peers = append(peers, (*rpcPeer)(sp))
  	}
  	return peers
  }
docs: // ConnectedPeers returns an array consisting of all connected peers.
  //
  // This function is safe for concurrent access and is part of the
  // rpcserverConnManager interface implementation.