diff --git a/kit/Kit.cpp b/kit/Kit.cpp index ec805039e..4ba312fca 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -630,7 +630,7 @@ public: return false; } - _websocketHandler->sendMessage(data, size, code); + _websocketHandler->sendMessage(data, size, code, /*flush=*/true); return true; } diff --git a/net/WebSocketHandler.hpp b/net/WebSocketHandler.hpp index 3d44280ca..481bad6bd 100644 --- a/net/WebSocketHandler.hpp +++ b/net/WebSocketHandler.hpp @@ -627,8 +627,8 @@ public: /// Sends a WebSocket message of WPOpCode type. /// Returns the number of bytes written (including frame overhead) on success, - /// 0 for closed/invalid socket, and -1 for other errors. - int sendMessage(const char* data, const size_t len, const WSOpCode code, const bool flush = true) const + /// 0 for closed socket, and -1 for other errors. + int sendMessage(const char* data, const size_t len, const WSOpCode code, const bool flush) const { int unitReturn = -1; if (!Util::isFuzzing() && UnitBase::get().filterSendMessage(data, len, code, flush, unitReturn))