https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5dfffa5f98c91f22ee3d4570dd8be8b457f3c3b4 authored by Takeshi Yoshino on 09 March 2017, 08:24:18 UTC
Update WritableStream tests
Tip revision: 5dfffa5
protocol_array_wsh.py
#!/usr/bin/python

from mod_pywebsocket import msgutil, util

def web_socket_do_extra_handshake(request):
    line = request.headers_in.get('Sec-WebSocket-Protocol')
    request.ws_protocol = line.split(',', 1)[0]

#pass

def web_socket_transfer_data(request):
    while True:
        msgutil.send_message(request, request.ws_protocol)
        return
back to top