@staticmethod
def _publish_single(data, queue):
    """
        Publishes a single piece of data to a single user. Data is encoded as
        required.
        """
    str_data = str(data)
    for line in str_data.split('\n'):
        queue.put('data: {}\n'.format(line))
    queue.put('\n')
