From 57f04cada6a306b751178465515caae6fc127a13 Mon Sep 17 00:00:00 2001 From: Daniel-M Date: Tue, 22 Dec 2020 16:08:44 -0500 Subject: [PATCH] Minor change --- README.md | 2 ++ SocketIoClient.cpp | 2 +- SocketIoClient.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a0cd6a..46ffea0 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ - [Example](#example) - [Contribution](#contribution) +## Updated to compile with WebSockets v2.3.2 (as of Dec 2020) + ## Install ### 💡 This library uses lstdc++ diff --git a/SocketIoClient.cpp b/SocketIoClient.cpp index 65c38d0..ce3716a 100644 --- a/SocketIoClient.cpp +++ b/SocketIoClient.cpp @@ -53,7 +53,7 @@ void SocketIoClient::webSocketEvent(WStype_t type, uint8_t * payload, size_t len } } -void SocketIoClient::beginSSL(const char* host, const int port, const char* url, const char* fingerprint) { +void SocketIoClient::beginSSL(const char* host, const int port, const char* url, const uint8_t* fingerprint) { _webSocket.beginSSL(host, port, url, fingerprint); initialize(); } diff --git a/SocketIoClient.h b/SocketIoClient.h index 7f6e3dc..a698e9f 100644 --- a/SocketIoClient.h +++ b/SocketIoClient.h @@ -35,7 +35,7 @@ class SocketIoClient { void webSocketEvent(WStype_t type, uint8_t * payload, size_t length); void initialize(); public: - void beginSSL(const char* host, const int port = DEFAULT_PORT, const char* url = DEFAULT_URL, const char* fingerprint = DEFAULT_FINGERPRINT); + void beginSSL(const char* host, const int port = DEFAULT_PORT, const char* url = DEFAULT_URL, const uint8_t* fingerprint = (const uint8_t*)DEFAULT_FINGERPRINT); void begin(const char* host, const int port = DEFAULT_PORT, const char* url = DEFAULT_URL); void loop(); void on(const char* event, std::function);