From 2e3d625c1e345c89afd14fc3c63fb69ddab3939c Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 29 Jul 2020 17:47:33 -0700 Subject: [PATCH] (websocket client) onProgressCallback not called for short messages on a websocket (fix #233) --- docs/CHANGELOG.md | 4 ++++ ixwebsocket/IXWebSocketTransport.cpp | 5 +++++ ixwebsocket/IXWebSocketVersion.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) 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"