Reimpl send prot
This commit is contained in:
parent
0612afb37b
commit
9dcca746ed
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user