To ensure accurate synchronization with the server time, follow these steps:
alpha = 0.3 # Smoothing factor, 0.1 to 0.3 (recommended for balancing stability and responsiveness).
ewma = alpha * time_diff + (1 - alpha) * ewma
synchronized_server_time_ms = client_ts + ewma