1 from mod_pywebsocket import common
2 from mod_pywebsocket import stream
5 def web_socket_do_extra_handshake(request):
9 def web_socket_transfer_data(request):
10 payload1 = 'Invalid continuation frame to be ignored.'
11 payload2 = 'Valid frame after closing should be disposed.'
12 request.connection.write(stream.create_header(common.OPCODE_CONTINUATION,
14 1, 0, 0, 0, 0) + payload1)
15 request.connection.write(stream.create_header(common.OPCODE_TEXT,
17 1, 0, 0, 0, 0) + payload2)