some other version

This commit is contained in:
Johannes Wendel
2019-12-05 21:46:14 +01:00
parent b49bfc65f0
commit 1591dd02ef
5 changed files with 11 additions and 9 deletions

View File

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