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