def get_connection(self, endpoint):
        if endpoint:
            return self.endpoints.get(endpoint)
        else:
            return self.conn

    # Message handler
Get connection object.
dataset/ETHPy150Open mrjoes/tornadio2/tornadio2/session.py/Session.get_connection