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

Method disconnect

src/fl/net/http/stream_server.cpp.hpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void HttpStreamServer::disconnect() {
50 if (mNativeServer) {
51 mNativeServer->stop();
52 }
53 mClientStates.clear();
54 mConnection.onDisconnected();
55}
56
57bool HttpStreamServer::isConnected() const {
58 return mNativeServer && mNativeServer->isListening();

Callers

nothing calls this directly

Calls 3

onDisconnectedMethod · 0.80
stopMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected