Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-M committed Dec 22, 2020
1 parent 01ebdcd commit 57f04ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
- [Example](#example)
- [Contribution](#contribution)

## Updated to compile with WebSockets v2.3.2 (as of Dec 2020)

## Install <a name = "install"></a>

### 💡 This library uses lstdc++
Expand Down
2 changes: 1 addition & 1 deletion SocketIoClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion SocketIoClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<void (const char * payload, size_t length)>);
Expand Down

0 comments on commit 57f04ca

Please sign in to comment.