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

Method onEvent

src/fl/stl/asio/http/connection.cpp.hpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void HttpConnection::onEvent(const asio::error_code& ec, u32 currentTimeMs) {
93 if (ec.ok()) {
94 onConnected(currentTimeMs);
95 } else if (ec.code == asio::errc::eof || ec.code == asio::errc::connection_reset) {
96 onDisconnected();
97 } else {
98 onError();
99 }
100}
101
102void HttpConnection::onHeartbeatSent() {
103 // Note: currentTimeMs should be passed, but for simplicity we don't update timestamp here

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected