diff -r 000000000000 -r 6474c204b198 content/base/test/file_websocket_hello_wsh.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/base/test/file_websocket_hello_wsh.py Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,10 @@ +from mod_pywebsocket import msgutil + +def web_socket_do_extra_handshake(request): + pass + +def web_socket_transfer_data(request): + resp = "Test" + if msgutil.receive_message(request) == "data": + resp = "Hello world!" + msgutil.send_message(request, resp)