morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::qt::QtWebSocketBackendConfig Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ reconnectEnabled

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.

◆ initialReconnectDelay

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.

◆ maxReconnectDelay

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.

◆ backoffMultiplier

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.


The documentation for this struct was generated from the following file: