8000 Adding method for beginSocketIOSSL · faraday-motion/arduinoWebSockets@f68d9d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f68d9d8

Browse files
authored
Adding method for beginSocketIOSSL
1 parent 81e567b commit f68d9d8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/WebSocketsClient.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ void WebSocketsClient::beginSocketIO(String host, uint16_t port, String url, Str
101101
beginSocketIO(host.c_str(), port, url.c_str(), protocol.c_str());
102102
}
103103

104+
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266)
105+
void WebSocketsClient::beginSocketIOSSL(const char *host, uint16_t port, const char * url, const char * protocol) {
106+
begin(host, port, url, protocol);
107+
_client.isSocketIO = true;
108+
_client.isSSL = true;
109+
_fingerprint = "";
110+
}
111+
112+
void WebSocketsClient::beginSocketIOSSL(String host, uint16_t port, String url, String protocol) {
113+
beginSocketIOSSL(host.c_str(), port, url.c_str(), protocol.c_str());
114+
}
115+
#endif
116+
104117
#if (WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC)
105118
/**
106119
* called in arduino loop

0 commit comments

Comments
 (0)
0