If no ping is received in this many seconds, close the websocket connection (VPNs, etc. can fail to cleanly close ws connections). Default is max of 3 pings or 30 seconds.
(self)
| 289 | |
| 290 | @property |
| 291 | def ping_timeout(self) -> Optional[float]: |
| 292 | """If no ping is received in this many seconds, |
| 293 | close the websocket connection (VPNs, etc. can fail to cleanly close ws connections). |
| 294 | Default is max of 3 pings or 30 seconds. |
| 295 | """ |
| 296 | return self.settings.get("websocket_ping_timeout", None) |
| 297 | |
| 298 | @property |
| 299 | def max_message_size(self) -> int: |