From 09a48e10556e312eda2894be8ef9439f259da1b4 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Wed, 4 May 2022 19:32:25 +0200 Subject: [WebSocket] Fix WSLClient connection status. Note, this keeps the old behaviour of reporting CONNECTION_CONNECTED while disconnecting. We should change this before 4.0, but needs further refactoring of the WebSocket classes. --- modules/websocket/wsl_client.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/websocket/wsl_client.h') diff --git a/modules/websocket/wsl_client.h b/modules/websocket/wsl_client.h index 04af83f28c..22d7ffa839 100644 --- a/modules/websocket/wsl_client.h +++ b/modules/websocket/wsl_client.h @@ -52,6 +52,7 @@ private: Ref _peer; Ref _tcp; Ref _connection; + ConnectionStatus _status = CONNECTION_DISCONNECTED; CharString _request; int _requested = 0; @@ -59,8 +60,6 @@ private: uint8_t _resp_buf[WSL_MAX_HEADER_SIZE]; int _resp_pos = 0; - String _response; - String _key; String _host; uint16_t _port = 0; -- cgit v1.2.3