common/emgauwa-lib/src/constants.rs

11 lines
372 B
Rust
Raw Normal View History

use std::time::Duration;
2023-11-23 02:36:14 +00:00
pub const DEFAULT_PORT: u16 = 4419;
pub const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
pub const HEARTBEAT_TIMEOUT: Duration = Duration::from_secs(15);
pub const WEBSOCKET_RETRY_TIMEOUT: Duration = Duration::from_secs(5);
2023-12-07 03:30:33 +00:00
pub const RELAYS_RETRY_TIMEOUT: Duration = Duration::from_secs(5);
2024-04-26 14:15:24 +00:00
pub const RELAY_PULSE_DURATION: u64 = 3;