Public Member Functions | |
def | initialize |
def | on_close |
Public Attributes | |
close_future |
Base class for testing handlers that exposes the on_close event. This allows for deterministic cleanup of the associated socket.
Definition at line 32 of file websocket_test.py.
def tornado.test.websocket_test.TestWebSocketHandler.initialize | ( | self, | |
close_future | |||
) |
Definition at line 37 of file websocket_test.py.
Invoked when the WebSocket is closed. If the connection was closed cleanly and a status code or reason phrase was supplied, these values will be available as the attributes ``self.close_code`` and ``self.close_reason``. .. versionchanged:: 4.0 Added ``close_code`` and ``close_reason`` attributes.
Reimplemented from tornado.websocket.WebSocketHandler.
Definition at line 40 of file websocket_test.py.
Definition at line 37 of file websocket_test.py.