MCPcopy Create free account
hub / github.com/JoaoLopesF/RemoteDebug / disconnect

Method disconnect

src/RemoteDebugWS.cpp:131–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void RemoteDebugWS::disconnect() {
132
133 // Disconnect actual clients
134
135 if (_webSocketConnected != WS_NOT_CONNECTED) {
136
137 WebSocketServer.disconnect(_webSocketConnected);
138
139 // Disconnected
140
141 _webSocketConnected = WS_NOT_CONNECTED;
142
143 // Callback
144
145 if (_callbacks) {
146 _callbacks->onDisconnect();
147 }
148 }
149}
150
151// Handle
152

Callers 2

disconnectAllClientsMethod · 0.45
webSocketEventFunction · 0.45

Calls 1

onDisconnectMethod · 0.80

Tested by

no test coverage detected