Reimpl send prot

This commit is contained in:
Kilian Hofmann 2022-09-05 17:52:52 +02:00
parent 0612afb37b
commit 9dcca746ed

View File

@ -99,9 +99,9 @@ void Websocket::sendData(data &d)
{"hash", lastHash},
};
{
if (webSocket != nullptr) {
webSocket->send(json.dump(), false);
}
if (webSocket != nullptr) {
std::ostringstream msg;
msg << "SEND:" << user << ":" << json.dump();
webSocket->send(msg.str(), false);
}
}