diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp index ff4db1d..c1c7900 100644 --- a/src/AsyncWebSocket.cpp +++ b/src/AsyncWebSocket.cpp @@ -1331,10 +1331,6 @@ void AsyncWebSocket::_cleanBuffers() } } -const AsyncWebSocket::AsyncWebSocketClientLinkedList &AsyncWebSocket::getClients() const { - return _clients; -} - /* * Response to Web Socket request - sends the authorization and detaches the TCP Client from the web server * Authentication code from https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSockets.cpp#L480 diff --git a/src/AsyncWebSocket.h b/src/AsyncWebSocket.h index 4818447..414c5ff 100644 --- a/src/AsyncWebSocket.h +++ b/src/AsyncWebSocket.h @@ -248,11 +248,9 @@ typedef std::function AsyncWebSocketClientLinkedList; private: String _url; - AsyncWebSocketClientLinkedList _clients; + std::list _clients; uint32_t _cNextId; AwsEventHandler _eventHandler; AwsHandshakeHandler _handshakeHandler; @@ -344,7 +342,7 @@ class AsyncWebSocket: public AsyncWebHandler { std::list _buffers; void _cleanBuffers(); - const AsyncWebSocketClientLinkedList &getClients() const; + const std::list &getClients() const { return _clients; } }; //WebServer response to authenticate the socket and detach the tcp client from the web server request