(websocket client) onProgressCallback not called for short messages on a websocket (fix #233)

This commit is contained in:
Benjamin Sergeant 2020-07-29 17:47:33 -07:00
parent 029289413c
commit 2e3d625c1e
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,10 @@
# Changelog # Changelog
All changes to this project will be documented in this file. 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 ## [10.1.0] - 2020-07-29
(websocket client) heartbeat is not sent at the requested frequency (fix #232) (websocket client) heartbeat is not sent at the requested frequency (fix #232)

View File

@ -796,6 +796,11 @@ namespace ix
if (wireSize < kChunkSize) if (wireSize < kChunkSize)
{ {
success = sendFragment(type, true, message_begin, message_end, compress); success = sendFragment(type, true, message_begin, message_end, compress);
if (onProgressCallback)
{
onProgressCallback(0, 1);
}
} }
else else
{ {

View File

@ -6,4 +6,4 @@
#pragma once #pragma once
#define IX_WEBSOCKET_VERSION "10.1.0" #define IX_WEBSOCKET_VERSION "10.1.1"