20 lines
812 B
Rust
20 lines
812 B
Rust
#![allow(dead_code)]
|
|
pub const WS_TOKEN_PREFIX: &str = "im:ws:token:";
|
|
pub const WS_ONLINE_PREFIX: &str = "im:ws:online:";
|
|
pub const WS_CONNS_PREFIX: &str = "im:ws:conns:";
|
|
pub const WS_SEQ_PREFIX: &str = "im:seq:";
|
|
pub const WS_DEDUP_PREFIX: &str = "im:dedup:";
|
|
pub const WS_RATE_PREFIX: &str = "im:rate:";
|
|
pub const WS_RECONNECT_PREFIX: &str = "im:reconnect:";
|
|
|
|
pub const WS_TOKEN_TTL_SECS: u64 = 30;
|
|
pub const WS_ONLINE_TTL_SECS: u64 = 60;
|
|
pub const WS_HEARTBEAT_INTERVAL_SECS: u64 = 30;
|
|
pub const WS_HEARTBEAT_TIMEOUT_SECS: u64 = 60;
|
|
pub const WS_MAX_IDLE_SECS: u64 = 300;
|
|
pub const WS_MAX_MESSAGE_BYTES: usize = 64 * 1024;
|
|
pub const WS_MAX_MESSAGES_PER_SEC: u32 = 100;
|
|
pub const WS_SEQ_SEGMENT_SIZE: u64 = 1024;
|
|
pub const WS_DEDUP_WINDOW_SECS: u64 = 300;
|
|
pub const WS_RECONNECT_STATE_TTL_SECS: u64 = 86400;
|