def send_messages(self, messages):
        # Tracking
        self.server.stats.on_packet_sent(len(messages))

        try:
            for m in messages:
                self.write_message(m)
        except __HOLE__:
            if self.ws_connection and self.ws_connection.client_terminated:
                logger.debug('Dropping active websocket connection due to IOError.')

            self._detach()
dataset/ETHPy150Open mrjoes/tornadio2/tornadio2/persistent.py/TornadioWebSocketHandler.send_messages