13 lines
330 B
Rust
13 lines
330 B
Rust
use std::time::Duration;
|
|
|
|
mod client;
|
|
mod entities;
|
|
mod server;
|
|
|
|
pub use client::*;
|
|
pub use server::WSServer;
|
|
|
|
pub(crate) const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(8);
|
|
pub(crate) const PING_TIMEOUT: Duration = Duration::from_secs(60);
|
|
pub(crate) const MAX_PAYLOAD_SIZE: usize = 262_144; // max payload size is 256k
|