void InterfaceHttp::webSocketsSocketDisconnected() { WebSocket *webSocket = qobject_cast<WebSocket *>(sender()); if(webSocket) { webSocketClients.removeAll(webSocket); webSocket->deleteLater(); } webSocketsUpdateConnectedClients(); }
//! [socketDisconnected] void EchoServer::socketDisconnected() { WebSocket *pClient = qobject_cast<WebSocket *>(sender()); if (pClient != 0) { m_clients.removeAll(pClient); pClient->deleteLater(); } }