Reimpl send prot
This commit is contained in:
1 parent
0612afb37b
commit
9dcca746ed
1 file changed
+4
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user