diff --git a/samples/HttpServer_WebSockets/app/application.cpp b/samples/HttpServer_WebSockets/app/application.cpp index 2d0a059c4c..056973520c 100644 --- a/samples/HttpServer_WebSockets/app/application.cpp +++ b/samples/HttpServer_WebSockets/app/application.cpp @@ -66,8 +66,8 @@ void wsMessageReceived(WebsocketConnection& socket, const String& message) Serial.println(message); if(message == _F("shutdown")) { - String message(F("The server is shutting down...")); - socket.broadcast(message); + String reply(F("The server is shutting down...")); + socket.broadcast(reply); shutdownServer(); return; }