File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ void WebSocketsClient::handleClientData(void) {
340
340
switch (_client.status ) {
341
341
case WSC_HEADER:
342
342
{
343
- String headerLine = _client-> tcp ->readStringUntil (' \n ' );
343
+ String headerLine = _client. tcp ->readStringUntil (' \n ' );
344
344
handleHeader (&_client, &headerLine);
345
345
}
346
346
break ;
Original file line number Diff line number Diff line change @@ -98,15 +98,15 @@ void WebSocketsServer::begin(void) {
98
98
DEBUG_WEBSOCKETS (" [WS-Server] Server Started.\n " );
99
99
}
100
100
101
+ #if (WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC)
101
102
/* *
102
103
* called in arduino loop
103
104
*/
104
105
void WebSocketsServer::loop (void ) {
105
- #if (WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC)
106
106
handleNewClients ();
107
107
handleClientData ();
108
- #endif
109
108
}
109
+ #endif
110
110
111
111
/* *
112
112
* set callback function
Original file line number Diff line number Diff line change @@ -42,7 +42,14 @@ class WebSocketsServer: private WebSockets {
42
42
~WebSocketsServer (void );
43
43
44
44
void begin (void );
45
+ #if (WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC)
45
46
void loop (void );
47
+ #else
48
+ // Async interface not need a loop call
49
+ void loop (void ) __attribute__ ((deprecated)) {
50
+
51
+ }
52
+ #endif
46
53
47
54
void onEvent (WebSocketServerEvent cbEvent);
48
55
You can’t perform that action at this time.
0 commit comments