Get agent's current connections.

        :param bool data:
            Also return the data dictionary for each connection.

        :returns: A list of agent addresses or a dictionary

def get_connections(self, data=False):
        """Get agent's current connections.

        :param bool data:
            Also return the data dictionary for each connection.

        :returns: A list of agent addresses or a dictionary
        """
        if data:
            return self._connections
        return list(self._connections.keys())