resetTick method
void
resetTick()
Reset the tick countdown, restarts the keep-alive timer The next keep-alive message will be sent after the full interval
Implementation
void resetTick() {
_lastActivity = DateTime.now();
}