diff options
Diffstat (limited to 'include/websock.js')
-rw-r--r-- | include/websock.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/websock.js b/include/websock.js index 61d9467..892238b 100644 --- a/include/websock.js +++ b/include/websock.js @@ -154,6 +154,10 @@ function Websock() { this._rQi += len; }, + rQwhole: function () { + return new Uint8Array(this._rQ.buffer, 0, this._rQlen); + }, + rQslice: function (start, end) { if (end) { return new Uint8Array(this._rQ.buffer, this._rQi + start, end - start); |