def add_message(self, event, text, encoding='utf-8'):

        self._buffer.append("event: {0}\n".format(event))

        for text_item in self._parse_text(text, encoding):
            self._buffer.append("data: {0}\n".format(text_item))

        self._buffer.append("\n")
Add messaget with eventname to the buffer.
dataset/ETHPy150Open niwinz/sse/sse.py/Sse.add_message