(self)
| 584 | super()._break_cycles() |
| 585 | |
| 586 | def get_websocket_protocol(self) -> Optional["WebSocketProtocol"]: |
| 587 | websocket_version = self.request.headers.get("Sec-WebSocket-Version") |
| 588 | if websocket_version in ("7", "8", "13"): |
| 589 | params = _WebSocketParams( |
| 590 | ping_interval=self.ping_interval, |
| 591 | ping_timeout=self.ping_timeout, |
| 592 | max_message_size=self.max_message_size, |
| 593 | compression_options=self.get_compression_options(), |
| 594 | ) |
| 595 | return WebSocketProtocol13(self, False, params) |
| 596 | return None |
| 597 | |
| 598 | def _detach_stream(self) -> IOStream: |
| 599 | # disable non-WS methods |
no test coverage detected