pub mod command;
pub mod connection_cmd;
pub mod connection_impl;
pub mod connection_new;
pub mod connection_proc;
pub mod input;
pub mod output;
pub mod restful;
pub mod server;
pub mod server_handle;
pub mod server_impl;
pub mod service_chat;
pub mod service_location;
use std::time::Duration;
pub type ConnId = usize;
pub type UserInfo = (String, String, String);
pub type Msg = String;
pub const WEBCHAT_BROADCAST_CHANNEL: &str = "_webchat_broadcast_channel";
pub const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(5);
pub const CLIENT_TIMEOUT: Duration = Duration::from_secs(30);
pub const CLIENT_TIMEOUT_WARNNING: Duration = Duration::from_secs(10);