Add socket.io client

This commit is contained in:
Kenta Kusumoto
2016-06-06 15:21:13 +03:00
parent 6a914fc5ea
commit f8a5acc9b7
5 changed files with 167 additions and 17 deletions

View File

@ -159,6 +159,8 @@ typedef struct {
WEBSOCKETS_NETWORK_CLASS * tcp;
bool isSocketIO; ///< client for socket.io server
#if (WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266)
bool isSSL; ///< run in ssl mode
WiFiClientSecure * ssl;
@ -170,6 +172,7 @@ typedef struct {
bool cIsUpgrade; ///< Connection == Upgrade
bool cIsWebsocket; ///< Upgrade == websocket
String cSessionId; ///< client Set-Cookie (session id)
String cKey; ///< client Sec-WebSocket-Key
String cAccept; ///< client Sec-WebSocket-Accept
String cProtocol; ///< client Sec-WebSocket-Protocol