zellij-client 0.44.3

The client-side library for Zellij
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::time::Duration;

// API endpoints
pub const LOGIN_ENDPOINT: &str = "/command/login";
pub const SESSION_ENDPOINT: &str = "/session";
pub const WS_TERMINAL_ENDPOINT: &str = "/ws/terminal";
pub const WS_CONTROL_ENDPOINT: &str = "/ws/control";

// Connection settings
pub const CONNECTION_TIMEOUT_SECS: u64 = 30;

pub fn connection_timeout() -> Duration {
    Duration::from_secs(CONNECTION_TIMEOUT_SECS)
}