Remove unnecessary typedef for websocket client list

Fraction of commit f5e439c8f86609c3be855b76844352322e366b80 of dumbfixes
branch of 0xFEEDC0DE64 fork of ESPAsyncWebServer.

Split off for clarity.
This commit is contained in:
Alex Villacís Lasso
2020-12-29 18:10:26 -05:00
parent c3e4ca1f92
commit bf72f5484c
2 changed files with 2 additions and 8 deletions

View File

@@ -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

View File

@@ -248,11 +248,9 @@ typedef std::function<void(AsyncWebSocket * server, AsyncWebSocketClient * clien
//WebServer Handler implementation that plays the role of a socket server
class AsyncWebSocket: public AsyncWebHandler {
public:
typedef std::list<AsyncWebSocketClient> AsyncWebSocketClientLinkedList;
private:
String _url;
AsyncWebSocketClientLinkedList _clients;
std::list<AsyncWebSocketClient> _clients;
uint32_t _cNextId;
AwsEventHandler _eventHandler;
AwsHandshakeHandler _handshakeHandler;
@@ -344,7 +342,7 @@ class AsyncWebSocket: public AsyncWebHandler {
std::list<AsyncWebSocketMessageBuffer> _buffers;
void _cleanBuffers();
const AsyncWebSocketClientLinkedList &getClients() const;
const std::list<AsyncWebSocketClient> &getClients() const { return _clients; }
};
//WebServer response to authenticate the socket and detach the tcp client from the web server request