You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e205134
Browse filesBrowse the repository at this point in the historyBrowse files
docs(websockets): clarify ping_timeout derivation and queue_maxsize scope
- note that ping_timeout falls back to 45 when ping_interval=0 (pings
disabled, value unused) in the constants comment, README, and all
channel class docstrings
- document that queue_maxsize bounds both the receive() and callback
queues in the channel class docstrings
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -584,7 +584,7 @@ All channel classes accept the following optional keyword arguments:
584
584
| Parameter | Type | Default | Description |
585
585
|-----------|------|---------|-------------|
586
586
|`ping_interval`|`int`|`60`| Seconds between automatic ping frames. Set to `0` to disable pings. |
587
-
|`ping_timeout`|`int \| None`|`None`| Seconds to wait for a pong response before treating the connection as dead. Defaults to `min(45, ping_interval - 1)`. When `ping_interval > 0`, this must be lower than `ping_interval`. |
587
+
|`ping_timeout`|`int \| None`|`None`| Seconds to wait for a pong response before treating the connection as dead. Defaults to `min(45, ping_interval - 1)` when pings are enabled, or `45` when `ping_interval=0` (unused since pings are disabled). When `ping_interval > 0`, this must be lower than `ping_interval`. |
588
588
|`auto_reconnect`|`bool`|`False`| Automatically reconnect on transient failures using exponential backoff. |
589
589
|`max_reconnect_attempts`|`int`|`5`| Maximum number of reconnect attempts before giving up. |
590
590
|`reconnect_backoff`|`float`|`2.0`| Base backoff delay in seconds. Doubles after each failed attempt (2s, 4s, 8s, ...). Resets on successful reconnection. |
0 commit comments