修复 CubeLib 中的可见性警告,将 OutgoingMessage 枚举的可见性从 pub(crate) 提升为 pub

This commit is contained in:
zqm
2026-04-07 15:33:22 +08:00
parent 3e64241070
commit 6cbd9e1e30
4 changed files with 142 additions and 12 deletions

View File

@@ -129,4 +129,16 @@ impl WebSocketConfig {
self.heartbeat_interval_ms = interval_ms;
self
}
/// Set initial reconnect delay in milliseconds
pub fn with_reconnect_delay(mut self, delay_ms: u64) -> Self {
self.reconnect_delay_ms = delay_ms;
self
}
/// Set maximum reconnect delay in milliseconds
pub fn with_max_reconnect_delay(mut self, delay_ms: u64) -> Self {
self.max_reconnect_delay_ms = delay_ms;
self
}
}