Functionsยง
- current_
timestamp - Creates a timestamp string for the current time
- format_
duration - Formats a duration in a human-readable way
- get_md5
- Calculates MD5 hash of the input Note: MD5 is used here for compatibility with the protocol, not for security
- is_
encrypted_ channel - Checks if a channel is encrypted (moved from channel.rs for backward compatibility)
- join_
strings - Efficiently joins strings with a separator
- secure_
compare - Constant-time string comparison to prevent timing attacks
- to_
ordered_ array - Converts a map to an ordered array of key=value pairs
- validate_
channel - Validates a channel name (moved to channel.rs but kept for backward compatibility)
- validate_
presence_ channel - Validates that a channel name starts with
presence-. - validate_
socket_ id - Validates a socket ID
- validate_
user_ id - Validates a user ID