'Send lines, which which is either a single string or an
iterable consisting of strings, to the client. A newline is
added after every string. Returns a Bluelet event that sends
the data.'

def send(self, lines):

    if isinstance(lines, six.string_types):
        lines = [lines]
    out = (NEWLINE.join(lines) + NEWLINE)
    log.debug('{}', out[:(-1)])
    if isinstance(out, six.text_type):
        out = out.encode('utf-8')
    return self.sock.sendall(out)
