Call rQshiftBytes to avoid code duplication

This commit is contained in:
Samuel Mannehed 2018-06-14 16:51:29 +02:00
parent e87b645b56
commit 362bd5e3a2
1 changed files with 1 additions and 2 deletions

View File

@ -100,8 +100,7 @@ Websock.prototype = {
rQshiftStr: function (len) {
if (typeof(len) === 'undefined') { len = this.rQlen(); }
const arr = new Uint8Array(this._rQ.buffer, this._rQi, len);
this._rQi += len;
const arr = this.rQshiftBytes(len);
return String.fromCharCode.apply(null, arr);
},