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")
Some signal case from real life.
dataset/ETHPy150Open niwinz/sse/sse.py/Sse.add_message--crossover with--dataset/ETHPy150Open zlorf/django-synchro/synchro/tests.py/SignalSynchroTests.test_signals_and_skip