code: def flush(self):
          
          # Flush buffer
          content = self._buffer.getvalue()
          self._buffer = StringIO()
  
          if content:
              # Send message
              self._client.send_message(self._target, content, mtype="chat")
docs: Sends buffered data to the target