pub const PROTOCOL_VERSION: u8 = 7;
pub const ACTIVITY_TIMEOUT: u64 = 120;
pub const PONG_TIMEOUT: u64 = 30;

pub const CHANNEL_NAME_MAX_LENGTH: usize = 200;
pub const CHANNEL_NAME_REGEX: &str = r"^[a-zA-Z0-9_\-=@,.;]+$";

pub const EVENT_NAME_MAX_LENGTH: usize = 200;
pub const CLIENT_EVENT_PREFIX: &str = "client-";
pub const DEFAULT_EVENT_NAME_MAX_LENGTH: i32 = 200;
pub const DEFAULT_CHANNEL_NAME_MAX_LENGTH: i32 = 200;

// Delta compression events
pub const EVENT_ENABLE_DELTA_COMPRESSION: &str = "pusher:enable_delta_compression";
pub const EVENT_DELTA_COMPRESSION_ENABLED: &str = "pusher:delta_compression_enabled";
pub const EVENT_DELTA: &str = "pusher:delta";
pub const EVENT_DELTA_CACHE_SYNC: &str = "pusher:delta_cache_sync";

// Connection recovery events
pub const EVENT_RESUME: &str = "pusher:resume";
pub const EVENT_RESUME_SUCCESS: &str = "pusher:resume_success";
pub const EVENT_RESUME_FAILED: &str = "pusher:resume_failed";
