Skip to main content

get_time

Function get_time 

Source
pub async fn get_time(
    configuration: &Configuration,
    x_ably_version: Option<&str>,
) -> Result<Vec<i64>, Error<GetTimeError>>
Expand description

Returns the current Ably service time as a single-element JSON array of milliseconds since the Unix epoch. Used to compute a local clock offset so signed TokenRequest timestamps fall within the server’s acceptance window (~2 minutes). No authentication required.