queryTime property

bool? queryTime
getter/setter pair

Whether the library queries the Ably servers for the current time when issuing TokenRequests instead of relying on a locally-available time of day.

Knowing the time accurately is needed to create valid signed Ably TokenRequests, so this option is useful for library instances on auth servers where for some reason the server clock cannot be kept synchronized through normal means, such as an NTP daemon. The server is queried for the current time once per client library instance (which stores the offset from the local clock), so if using this option you should avoid instancing a new version of the library for each request. The default is false.

Implementation

bool? queryTime;