MCPcopy Create free account
hub / github.com/SmingHub/Sming / removeSession

Method removeSession

samples/HttpServer_WebSockets/app/CUserData.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9void CUserData::removeSession(WebsocketConnection& connection)
10{
11 if(activeWebSockets.removeElement(&connection)) {
12 connection.setUserData(nullptr);
13 Serial.println(F("Removed user session"));
14 }
15}
16
17void CUserData::printMessage(WebsocketConnection& connection, const String& msg)
18{

Callers 1

wsDisconnectedFunction · 0.80

Calls 4

removeElementMethod · 0.80
setUserDataMethod · 0.80
printlnMethod · 0.80
FFunction · 0.50

Tested by

no test coverage detected