| 105 | } |
| 106 | |
| 107 | void HttpConnection::onHeartbeatReceived() { |
| 108 | // Note: currentTimeMs should be passed, but for simplicity we don't update timestamp here |
| 109 | // The caller should update mLastDataReceivedMs via update() |
| 110 | } |
| 111 | |
| 112 | bool HttpConnection::shouldSendHeartbeat(u32 currentTimeMs) const { |
| 113 | if (mState != ConnectionState::CONNECTED) { |