'Sends the given message to the client of this Web Socket.'

def write_message(self, message, binary=False):

    if binary:
        opcode = 2
    else:
        opcode = 1
    message = tornado.escape.utf8(message)
    assert isinstance(message, bytes)
    self._message_bytes_out += len(message)
    flags = 0
    if self._compressor:
        message = self._compressor.compress(message)
        flags |= self.RSV1
    self._write_frame(True, opcode, message, flags=flags)
