diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a7153b8b..7597cba1 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog All changes to this project will be documented in this file. +## [10.1.1] - 2020-07-29 + +(websocket client) onProgressCallback not called for short messages on a websocket (fix #233) + ## [10.1.0] - 2020-07-29 (websocket client) heartbeat is not sent at the requested frequency (fix #232) diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index b7daf876..730249fd 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -796,6 +796,11 @@ namespace ix if (wireSize < kChunkSize) { success = sendFragment(type, true, message_begin, message_end, compress); + + if (onProgressCallback) + { + onProgressCallback(0, 1); + } } else { diff --git a/ixwebsocket/IXWebSocketVersion.h b/ixwebsocket/IXWebSocketVersion.h index a42e7f7d..d704a633 100644 --- a/ixwebsocket/IXWebSocketVersion.h +++ b/ixwebsocket/IXWebSocketVersion.h @@ -6,4 +6,4 @@ #pragma once -#define IX_WEBSOCKET_VERSION "10.1.0" +#define IX_WEBSOCKET_VERSION "10.1.1"