Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions SocketIoClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ 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) {
_webSocket.beginSSL(host, port, url, fingerprint);
initialize();
void SocketIoClient::beginSSL(const char* host, const int port, const char* url, const uint8_t* fingerprint, const char* protocol) {
_webSocket.beginSSL(host, port, url, fingerprint, protocol);
initialize();
}


void SocketIoClient::begin(const char* host, const int port, const char* url) {
_webSocket.begin(host, port, url);
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 = NULL, const char* protocol = "arduino");
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