sockudo 3.0.0

A simple, fast, and secure WebSocket server for real-time applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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";