MCPcopy Create free account
hub / github.com/FastLED/FastLED / checkHeartbeatTimeout

Method checkHeartbeatTimeout

src/fl/net/http/stream_transport.cpp.hpp:407–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void HttpStreamTransport::checkHeartbeatTimeout(u32 currentTimeMs) {
408 u32 timeSinceLastReceived = currentTimeMs - mLastHeartbeatReceived;
409 if (timeSinceLastReceived >= getTimeout()) {
410 // Heartbeat timeout - connection is dead
411 mConnection.onDisconnected();
412 disconnect();
413 }
414}
415
416bool HttpStreamTransport::processIncomingData() {
417 if (!isConnected()) {

Callers

nothing calls this directly

Calls 1

onDisconnectedMethod · 0.80

Tested by

no test coverage detected