MCPcopy Create free account
hub / github.com/Links2004/arduinoWebSockets / close

Method close

src/WebSocketsServer.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void WebSocketsServerCore::close(void) {
116 _runnning = false;
117 disconnect();
118
119 // restore _clients[] to their initial state
120 // before next call to ::begin()
121 for(int i = 0; i < WEBSOCKETS_SERVER_CLIENT_MAX; i++) {
122 _clients[i] = WSclient_t();
123 }
124}
125
126/**
127 * set callback function

Callers 2

shellFunction · 0.80
runFunction · 0.80

Calls

no outgoing calls

Tested by 1

runFunction · 0.64