diff --git a/src/WebSockets.cpp b/src/WebSockets.cpp index 1320e3e..9512324 100644 --- a/src/WebSockets.cpp +++ b/src/WebSockets.cpp @@ -46,6 +46,7 @@ extern "C" { #endif + /** * * @param client WSclient_t * ptr to the client struct diff --git a/src/WebSocketsClient.cpp b/src/WebSocketsClient.cpp index b359e6d..ea31db7 100644 --- a/src/WebSocketsClient.cpp +++ b/src/WebSocketsClient.cpp @@ -373,7 +373,6 @@ void WebSocketsClient::clientDisconnect(WSclient_t * client) { client->cCode = 0; client->cKey = ""; client->cAccept = ""; - client->cProtocol = ""; client->cVersion = 0; client->cIsUpgrade = false; client->cIsWebsocket = false; diff --git a/src/WebSocketsClient.h b/src/WebSocketsClient.h index c1f5b0c..ab82e98 100644 --- a/src/WebSocketsClient.h +++ b/src/WebSocketsClient.h @@ -37,7 +37,7 @@ class WebSocketsClient: private WebSockets { WebSocketsClient(void); - ~WebSocketsClient(void); + virtual ~WebSocketsClient(void); void begin(const char *host, uint16_t port, const char * url = "/", const char * protocol = "arduino"); void begin(String host, uint16_t port, String url = "/", String protocol = "arduino"); diff --git a/src/WebSocketsServer.h b/src/WebSocketsServer.h index 3550c6a..7d5a7cd 100644 --- a/src/WebSocketsServer.h +++ b/src/WebSocketsServer.h @@ -44,7 +44,7 @@ public: #endif WebSocketsServer(uint16_t port, String origin = "", String protocol = "arduino"); - ~WebSocketsServer(void); + virtual ~WebSocketsServer(void); void begin(void);