diff --git a/ixwebsocket/IXWebSocketServer.cpp b/ixwebsocket/IXWebSocketServer.cpp index bef87c4a..0d974547 100644 --- a/ixwebsocket/IXWebSocketServer.cpp +++ b/ixwebsocket/IXWebSocketServer.cpp @@ -188,6 +188,7 @@ namespace ix { client->send(msg->str, msg->binary); + // Make sure the OS send buffer is flushed before moving on do { size_t bufferedAmount = client->bufferedAmount();