This commit is contained in:
Jonas Zeunert
2019-10-30 21:48:03 +01:00

View File

@@ -40,7 +40,10 @@ void InputSocketHandler::run()
std::string str = event.getJsonString();
this->socket().sendBytes(str.c_str(), str.length());
auto size = str.size();
str = std::to_string(size) + std::to_string(0x02) + str;
this->socket().sendBytes(str.c_str(), str.size());
}
}