feff97407290a1998299a0383e110647d7b868bf
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / unknown-frame-type_wsh.py
1 from mod_pywebsocket import msgutil
2
3
4 def web_socket_do_extra_handshake(request):
5     pass
6
7
8 def web_socket_transfer_data(request):
9     for i in range(1, 128):
10         request.connection.write(chr(i) + str(i) + '\xff')
11     for i in range(128, 256):
12         msg = str(i)
13         request.connection.write(chr(i) + chr(len(msg)) + msg)
14     msgutil.send_message(request, 'done')