comparison: content/base/test/file_websocket_hello_wsh.py
content/base/test/file_websocket_hello_wsh.py
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 from mod_pywebsocket import msgutil |
|
2 |
|
3 def web_socket_do_extra_handshake(request): |
|
4 pass |
|
5 |
|
6 def web_socket_transfer_data(request): |
|
7 resp = "Test" |
|
8 if msgutil.receive_message(request) == "data": |
|
9 resp = "Hello world!" |
|
10 msgutil.send_message(request, resp) |