websocket send: make sure all data in the kernel buffer is sent

This commit is contained in:
Benjamin Sergeant
2019-03-11 22:16:55 -07:00
parent 892ea375e3
commit d6597d9f52
4 changed files with 25 additions and 2 deletions

View File

@ -63,7 +63,13 @@ namespace ix
{
if (client != webSocket)
{
client->send(str);
client->send(str,
[](int current, int total) -> bool
{
std::cerr << "Step " << current
<< " out of " << total << std::endl;
return true;
});
}
}
}