diff --git a/js/src/Ice/browser/WSTransceiver.js b/js/src/Ice/browser/WSTransceiver.js index c2f020e814b..c413c012bf9 100644 --- a/js/src/Ice/browser/WSTransceiver.js +++ b/js/src/Ice/browser/WSTransceiver.js @@ -276,7 +276,7 @@ class WSTransceiver } } - moreData.value = this._readBuffers.byteLength > 0; + moreData.value = this._readBuffers.length > 0; return byteBuffer.remaining === 0; }