Added stuff

This commit is contained in:
Johannes Wendel
2019-10-30 21:39:17 +01:00
parent be7b72244a
commit c23b2f7af5

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(), size);
}
}