isInKeepAlivePeriod property

bool get isInKeepAlivePeriod

Whether this connection is currently in the KeepAlive timeout period.

Implementation

bool get isInKeepAlivePeriod => _keepAliveTimer?.isActive ?? false;