Skip to content

Commit af17970

Browse files
authored
Merge pull request #906 from omarcostahamido/patch-1
Update WebSocketServer.ino
2 parents d41d65c + 66f69c3 commit af17970

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/esp32/WebSocketServer/WebSocketServer.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t length
4242
IPAddress ip = webSocket.remoteIP(num);
4343
USE_SERIAL.printf("[%u] Connected from %d.%d.%d.%d url: %s\n", num, ip[0], ip[1], ip[2], ip[3], payload);
4444

45-
// send message to client
46-
webSocket.sendTXT(num, "Connected");
45+
// send message to client
46+
webSocket.sendTXT(num, "Connected");
4747
}
4848
break;
4949
case WStype_TEXT:
@@ -62,12 +62,12 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t length
6262
// send message to client
6363
// webSocket.sendBIN(num, payload, length);
6464
break;
65-
case WStype_ERROR:
66-
case WStype_FRAGMENT_TEXT_START:
67-
case WStype_FRAGMENT_BIN_START:
68-
case WStype_FRAGMENT:
69-
case WStype_FRAGMENT_FIN:
70-
break;
65+
case WStype_ERROR:
66+
case WStype_FRAGMENT_TEXT_START:
67+
case WStype_FRAGMENT_BIN_START:
68+
case WStype_FRAGMENT:
69+
case WStype_FRAGMENT_FIN:
70+
break;
7171
}
7272

7373
}

0 commit comments

Comments
 (0)