8000 print version in DEBUG mode · PeterEmbedded/arduinoWebSockets@39e6a8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 39e6a8e

Browse files
committed
print version in DEBUG mode
1 parent 784b7f9 commit 39e6a8e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/WebSocketsClient.cpp

Lines changed: 2 additions & 0 deletions
89
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ void WebSocketsClient::begin(const char * host, uint16_t port, const char * url,
8686

8787
_lastConnectionFail = 0;
8888
_lastHeaderSent = 0;
+
90+
DEBUG_WEBSOCKETS("[WS-Client] Websocket Version: " WEBSOCKETS_VERSION "\n");
8991
}
9092

9193
void WebSocketsClient::begin(String host, uint16_t port, String url, String protocol) {

src/WebSocketsServer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ void WebSocketsServerCore::begin(void) {
9191
#endif
9292

9393
_runnning = true;
94+
95+
DEBUG_WEBSOCKETS("[WS-Server] Websocket Version: " WEBSOCKETS_VERSION "\n");
9496
}
9597

9698
void WebSocketsServerCore::close(void) {

0 commit comments

Comments
 (0)
0