https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1ea1164abf90d96f40b93221795734fd97acc605 authored by Chandan Padhi on 26 March 2018, 10:09:55 UTC
Add support for autoGainControl and noiseSuppression to getCapabilities()
Tip revision: 1ea1164
echo-cookie_wsh.py
#!/usr/bin/python

from mod_pywebsocket import msgutil

def web_socket_do_extra_handshake(request):
    request.ws_cookie = request.headers_in.get('Cookie')

def web_socket_transfer_data(request):
    if request.ws_cookie is not None:
        msgutil.send_message(request, request.ws_cookie)
    else:
        msgutil.send_message(request, '(none)')
back to top