refactor(server): check latency