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

Method update

src/fl/stl/asio/http/native_client.cpp.hpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void NativeHttpClient::update(u32 currentTimeMs) {
123 // Update connection state machine
124 mConnection.update(currentTimeMs);
125
126 // Check if we should reconnect
127 if (mConnection.shouldReconnect()) {
128 // Attempt reconnection
129 connect();
130 }
131
132 // Check if connection was lost
133 if (!isConnected() && mSocket.is_open()) {
134 disconnect();
135 }
136}
137
138bool NativeHttpClient::shouldSendHeartbeat(u32 currentTimeMs) const {
139 return mConnection.shouldSendHeartbeat(currentTimeMs);

Callers

nothing calls this directly

Calls 3

shouldReconnectMethod · 0.80
connectFunction · 0.50
is_openMethod · 0.45

Tested by

no test coverage detected