|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Reconnect tuning for QtWebSocketBackend. More...
#include <qt_websocket_backend.hpp>
Public Attributes | |
| bool | reconnectEnabled = true |
| Whether to attempt automatic reconnect after an unsolicited disconnect. | |
| std::chrono::milliseconds | initialReconnectDelay = std::chrono::milliseconds{500} |
| Delay before the first reconnect attempt after a disconnect. | |
| std::chrono::milliseconds | maxReconnectDelay = std::chrono::seconds{30} |
| Upper bound on the exponential backoff between reconnect attempts. | |
| double | backoffMultiplier = 2.0 |
| Multiplier applied to the delay after each failed attempt. | |
Reconnect tuning for QtWebSocketBackend.
Declared outside QtWebSocketBackend so its default initialisers are fully parsed before any constructor default argument that names Config{} is evaluated (same rationale as morph::offline::NetworkMonitorConfig).
Definition at line 34 of file qt_websocket_backend.hpp.
| bool morph::qt::QtWebSocketBackendConfig::reconnectEnabled = true |
Whether to attempt automatic reconnect after an unsolicited disconnect.
Definition at line 36 of file qt_websocket_backend.hpp.
| std::chrono::milliseconds morph::qt::QtWebSocketBackendConfig::initialReconnectDelay = std::chrono::milliseconds{500} |
Delay before the first reconnect attempt after a disconnect.
Definition at line 39 of file qt_websocket_backend.hpp.
| std::chrono::milliseconds morph::qt::QtWebSocketBackendConfig::maxReconnectDelay = std::chrono::seconds{30} |
Upper bound on the exponential backoff between reconnect attempts.
Definition at line 42 of file qt_websocket_backend.hpp.
| double morph::qt::QtWebSocketBackendConfig::backoffMultiplier = 2.0 |
Multiplier applied to the delay after each failed attempt.
Definition at line 45 of file qt_websocket_backend.hpp.