https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 6a33b243f29a42f0a38e95b3bf3c8428e109b10a authored by Javier Fernandez on 18 December 2018, 22:50:09 UTC
[LayoutNG] New value 'break-spaces' for the white-space property
Tip revision: 6a33b24
echo_raw_wsh.py
#!/usr/bin/python

from mod_pywebsocket import msgutil
import urllib


def web_socket_do_extra_handshake(request):
    pass  # Always accept.

def web_socket_transfer_data(request):
    while True:
        line = msgutil.receive_message(request)
        if line == 'exit':
            return
        request.connection.write(line.decode("string-escape"))
back to top