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}, {"hash", lastHash},
}; };
{ if (webSocket != nullptr) {
if (webSocket != nullptr) { std::ostringstream msg;
webSocket->send(json.dump(), false); msg << "SEND:" << user << ":" << json.dump();
} webSocket->send(msg.str(), false);
} }
} }