diff --git a/Server/CMakeLists.txt.user b/Server/CMakeLists.txt.user index d97b98b93547dc1311090e58f5ab973efc7bf0e4..83664e7cda7f521a286fa57688659a925b2499ac 100644 --- a/Server/CMakeLists.txt.user +++ b/Server/CMakeLists.txt.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/Server/src/server.cpp b/Server/src/server.cpp index 67c4860a82510b4ee7d72ca7640ecfb751ea424e..4d68cf98ffc80c0baab3706723625c06993535d2 100644 --- a/Server/src/server.cpp +++ b/Server/src/server.cpp @@ -189,6 +189,7 @@ void on_open(server* s, websocketpp::connection_hdl hdl) { sendMsg(s, hdl, pMessage.toString(), websocketpp::frame::opcode::value::TEXT); web_hdl = hdl; m_send = true; + isChanged = true; } } @@ -229,6 +230,7 @@ void on_message(server* s, websocketpp::connection_hdl hdl, message_ptr msg) { JsApp::GetInstance().SetJsAppPath(cMessage.args["jsBundle"]); JsApp::GetInstance().Start(); m_send = true; + isChanged = true; sendMsg(s, hdl, successMsg, msg->get_opcode()); }else if (cMessage.command == "exit") { //std::cout << "exit preview" << std::endl;