| OLD | NEW |
| 1 from mod_pywebsocket import common | 1 from mod_pywebsocket import common |
| 2 from mod_pywebsocket import handshake | 2 from mod_pywebsocket import handshake |
| 3 from mod_pywebsocket import stream | 3 from mod_pywebsocket import stream |
| 4 from mod_pywebsocket import msgutil | 4 from mod_pywebsocket import msgutil |
| 5 | 5 |
| 6 | 6 |
| 7 def web_socket_do_extra_handshake(request): | 7 def web_socket_do_extra_handshake(request): |
| 8 pass | 8 pass |
| 9 | 9 |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 assert final | 26 assert final |
| 27 assert not reserved1 | 27 assert not reserved1 |
| 28 assert not reserved2 | 28 assert not reserved2 |
| 29 assert not reserved3 | 29 assert not reserved3 |
| 30 | 30 |
| 31 # Send a masked close frame. Clients should be able to handle this frame and | 31 # Send a masked close frame. Clients should be able to handle this frame and |
| 32 # the WebSocket object should be closed cleanly. | 32 # the WebSocket object should be closed cleanly. |
| 33 request.connection.write(stream.create_close_frame('', mask=False)) | 33 request.connection.write(stream.create_close_frame('', mask=False)) |
| 34 | 34 |
| 35 raise handshake.AbortedByUserException('Abort the connection') # Prevents py
websocket from starting its own closing handshake. | 35 raise handshake.AbortedByUserException('Abort the connection') # Prevents py
websocket from starting its own closing handshake. |
| OLD | NEW |