add virtual to destructor #243

This commit is contained in:
Links
2017-10-04 19:17:21 +02:00
parent 9608c2d210
commit b87bce4466
4 changed files with 3 additions and 3 deletions

View File

@ -46,6 +46,7 @@ extern "C" {
#endif #endif
/** /**
* *
* @param client WSclient_t * ptr to the client struct * @param client WSclient_t * ptr to the client struct

View File

@ -373,7 +373,6 @@ void WebSocketsClient::clientDisconnect(WSclient_t * client) {
client->cCode = 0; client->cCode = 0;
client->cKey = ""; client->cKey = "";
client->cAccept = ""; client->cAccept = "";
client->cProtocol = "";
client->cVersion = 0; client->cVersion = 0;
client->cIsUpgrade = false; client->cIsUpgrade = false;
client->cIsWebsocket = false; client->cIsWebsocket = false;

View File

@ -37,7 +37,7 @@ class WebSocketsClient: private WebSockets {
WebSocketsClient(void); WebSocketsClient(void);
~WebSocketsClient(void); virtual ~WebSocketsClient(void);
void begin(const char *host, uint16_t port, const char * url = "/", const char * protocol = "arduino"); 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"); void begin(String host, uint16_t port, String url = "/", String protocol = "arduino");

View File

@ -44,7 +44,7 @@ public:
#endif #endif
WebSocketsServer(uint16_t port, String origin = "", String protocol = "arduino"); WebSocketsServer(uint16_t port, String origin = "", String protocol = "arduino");
~WebSocketsServer(void); virtual ~WebSocketsServer(void);
void begin(void); void begin(void);