https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2a5953574c9e14f4f2f894c9267faa3276994aa0 authored by Chris Nardi on 04 April 2018, 18:37:37 UTC
Match whitespace for custom property serialization
Tip revision: 2a59535
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