tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

How often does TDLib phone back to server to decide on the connection state? #2852

Closed vincentneo closed 6 months ago

vincentneo commented 6 months ago

As always with my queries, its use case is for Apple watchOS/HTTP.

Curious with how it works, and wondering if there's any fixed timeouts/rates to play around with, for experimentation purposes. (Not a bug report or anything like that, just a technical question, which reading from source code and logs, confuses me so far)

levlam commented 6 months ago

If the current user is "online", then connection aliveness is checked every few seconds. Usually, every 3-7 seconds depending on the roundtrip time.

vincentneo commented 6 months ago

Alright thanks!