https://github.com/web-platform-tests/wpt
Raw File
Tip revision: be315b1de5c832b49d353768e0b2a268658714b9 authored by Chris Rebert on 09 October 2015, 01:08:52 UTC
Stop using designMode and execCommand for dirtying in HTML form constraint tests
Tip revision: be315b1
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