mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-27 23:00:55 +02:00
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:
@@ -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
|
* 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
|
* Authentication code from https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSockets.cpp#L480
|
||||||
|
@@ -248,11 +248,9 @@ typedef std::function<void(AsyncWebSocket * server, AsyncWebSocketClient * clien
|
|||||||
|
|
||||||
//WebServer Handler implementation that plays the role of a socket server
|
//WebServer Handler implementation that plays the role of a socket server
|
||||||
class AsyncWebSocket: public AsyncWebHandler {
|
class AsyncWebSocket: public AsyncWebHandler {
|
||||||
public:
|
|
||||||
typedef std::list<AsyncWebSocketClient> AsyncWebSocketClientLinkedList;
|
|
||||||
private:
|
private:
|
||||||
String _url;
|
String _url;
|
||||||
AsyncWebSocketClientLinkedList _clients;
|
std::list<AsyncWebSocketClient> _clients;
|
||||||
uint32_t _cNextId;
|
uint32_t _cNextId;
|
||||||
AwsEventHandler _eventHandler;
|
AwsEventHandler _eventHandler;
|
||||||
AwsHandshakeHandler _handshakeHandler;
|
AwsHandshakeHandler _handshakeHandler;
|
||||||
@@ -344,7 +342,7 @@ class AsyncWebSocket: public AsyncWebHandler {
|
|||||||
std::list<AsyncWebSocketMessageBuffer> _buffers;
|
std::list<AsyncWebSocketMessageBuffer> _buffers;
|
||||||
void _cleanBuffers();
|
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
|
//WebServer response to authenticate the socket and detach the tcp client from the web server request
|
||||||
|
Reference in New Issue
Block a user