https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 988503ce0658e4f1b072d76bfe34ebdc8336d028 authored by Luke Bjerring on 19 March 2018, 16:57:43 UTC
Handle options for add_untested_idls
Tip revision: 988503c
empty-message_wsh.py
#!/usr/bin/python

from mod_pywebsocket import msgutil

def web_socket_do_extra_handshake(request):
    pass  # Always accept.

def web_socket_transfer_data(request):
    line = msgutil.receive_message(request)
    if line == "":
        msgutil.send_message(request, 'pass')
    else:
        msgutil.send_message(request, 'fail')
back to top