https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ee643b5070f41452bd61368a5594edf9c4b4b024 authored by Luke Bjerring on 14 March 2018, 13:45:13 UTC
Distinguish which instance toJSON is being executed against when inherited
Tip revision: ee643b5
echo-query_wsh.py
#!/usr/bin/python

from mod_pywebsocket import msgutil, util

def web_socket_do_extra_handshake(request):
    pass  # Always accept.

def web_socket_transfer_data(request):
    msgutil.send_message(request, request.unparsed_uri.split('?', 1)[1] or '')
back to top