pub mod auth;
pub mod constants;
pub mod errors;
pub mod frame;
pub mod peer;
pub mod state_mach;
pub mod stream_framing;
pub mod topic;
pub mod traits;
/// Gets the default agent name.
pub fn get_default_agent() -> String {
let ver = constants::ECKSPORT_CORE_VERSION.unwrap_or("undefined");
format!("/ecksport:{ver}/")
}
/// Gets the agent name with an application name specified.
pub fn get_named_agent(name: &str) -> String {
let ver = constants::ECKSPORT_CORE_VERSION.unwrap_or("undefined");
format!("/{name}/ecksport:{ver}/")
}