from mod_pywebsocket import stream


def web_socket_do_extra_handshake(request):
    pass


def web_socket_transfer_data(request):
    # pywebsocket does not mask message by default. We need to build a frame
    # manually to mask it.
    request.connection.write(
        stream.create_text_frame('The Masked Message', mask=True))

1ce4b940ac29b73162217eadac1b916ff3a53e6a
<mask token>

<mask token>


def web_socket_transfer_data(request):
    request.connection.write(stream.create_text_frame('The Masked Message',
        mask=True))

<mask token>


def web_socket_do_extra_handshake(request):
    pass


def web_socket_transfer_data(request):
    request.connection.write(stream.create_text_frame('The Masked Message',
        mask=True))

from mod_pywebsocket import stream


def web_socket_do_extra_handshake(request):
    pass


def web_socket_transfer_data(request):
    request.connection.write(stream.create_text_frame('The Masked Message',
        mask=True))

from mod_pywebsocket import stream


def web_socket_do_extra_handshake(request):
    pass


def web_socket_transfer_data(request):
    # pywebsocket does not mask message by default. We need to build a frame
    # manually to mask it.
    request.connection.write(
        stream.create_text_frame('The Masked Message', mask=True))
