Public Member Functions | |
def | __init__ |
def | accept_connection |
def | close |
def | write_message |
Public Attributes | |
client_terminated | |
server_terminated | |
Private Member Functions | |
def | _accept_connection |
def | _challenge_response |
def | _handle_message |
def | _handle_websocket_headers |
def | _on_frame_data |
def | _on_frame_length_16 |
def | _on_frame_length_64 |
def | _on_frame_start |
def | _on_masking_key |
def | _receive_frame |
def | _write_frame |
Private Attributes | |
_final_frame | |
_fragmented_message_buffer | |
_fragmented_message_opcode | |
_frame_length | |
_frame_mask | |
_frame_opcode | |
_frame_opcode_is_control | |
_waiting |
Implementation of the WebSocket protocol from RFC 6455. This class supports versions 7 and 8 of the protocol in addition to the final version 13.
Definition at line 439 of file websocket.py.
def tornado.websocket.WebSocketProtocol13.__init__ | ( | self, | |
handler | |||
) |
Reimplemented from tornado.websocket.WebSocketProtocol.
Definition at line 445 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._accept_connection | ( | self | ) | [private] |
Definition at line 481 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._challenge_response | ( | self | ) | [private] |
Definition at line 474 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._handle_message | ( | self, | |
opcode, | |||
data | |||
) | [private] |
Definition at line 611 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._handle_websocket_headers | ( | self | ) | [private] |
Verifies all invariant- and required headers If a header is missing or have an incorrect value ValueError will be raised
Definition at line 464 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._on_frame_data | ( | self, | |
data | |||
) | [private] |
Definition at line 570 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._on_frame_length_16 | ( | self, | |
data | |||
) | [private] |
Definition at line 558 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._on_frame_length_64 | ( | self, | |
data | |||
) | [private] |
Definition at line 562 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._on_frame_start | ( | self, | |
data | |||
) | [private] |
Definition at line 531 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._on_masking_key | ( | self, | |
data | |||
) | [private] |
Definition at line 566 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._receive_frame | ( | self | ) | [private] |
Definition at line 528 of file websocket.py.
def tornado.websocket.WebSocketProtocol13._write_frame | ( | self, | |
fin, | |||
opcode, | |||
data | |||
) | [private] |
Definition at line 502 of file websocket.py.
Definition at line 455 of file websocket.py.
def tornado.websocket.WebSocketProtocol13.close | ( | self | ) |
Closes the WebSocket connection.
Definition at line 639 of file websocket.py.
def tornado.websocket.WebSocketProtocol13.write_message | ( | self, | |
message, | |||
binary = False |
|||
) |
Sends the given message to the client of this Web Socket.
Definition at line 518 of file websocket.py.
Definition at line 445 of file websocket.py.
Definition at line 445 of file websocket.py.
Definition at line 445 of file websocket.py.
Definition at line 445 of file websocket.py.
Definition at line 445 of file websocket.py.
Definition at line 445 of file websocket.py.
Definition at line 531 of file websocket.py.
Definition at line 445 of file websocket.py.
Reimplemented from tornado.websocket.WebSocketProtocol.
Definition at line 611 of file websocket.py.
Reimplemented from tornado.websocket.WebSocketProtocol.
Definition at line 639 of file websocket.py.