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

Method broadcast

src/fl/stl/asio/http/native_server.cpp.hpp:142–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void NativeHttpServer::broadcast(fl::span<const u8> data) {
143 // Send to all clients
144 for (auto& client : mClients) {
145 send(client.clientId, data);
146 }
147}
148
149void NativeHttpServer::update(u32 currentTimeMs) {
150 // Check for dead connections

Callers 2

sendDataMethod · 0.80
FL_TEST_FILEFunction · 0.80

Calls 1

sendFunction · 0.50

Tested by

no test coverage detected