https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 20d1447c7c5e95723d5c102b3645461fd0477e55 authored by Marcos Cáceres on 22 March 2018, 02:51:25 UTC
Remove PaymentCurrencyAmount.currencySystem tests
Tip revision: 20d1447
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