def outputThread(self):
        while self.isActive:
            if self.sentCount > 5:
                time.sleep(0.03)
                continue
            packetToBroadCast = protocol.deQueue([outputQueue])

            if not packetToBroadCast:
                    continue

            for packet in packetToBroadCast:
                self.writeSocket(packet)
                self.sentCount = self.sentCount+1
                logger.log(logging.DEBUG, self.formattedAddr + "Sending URL " + str(packet.payload.urlList[0]))
Checks if there are messages to send to the client and sends them
dataset/ETHPy150Open Diastro/Zeek/src/server.py/SSClient.outputThread