Cleanup: RFB Client

File: rfb.js (also websock.js)
Tests Added: True

Changes:
- De-Crockford-ified rfb.js
- Added methods to websock.js to skip bytes in the receive queue
This commit is contained in:
Solly Ross 2014-06-19 13:27:42 -04:00
parent 1e13775bd5
commit b1dee94788
3 changed files with 3506 additions and 1929 deletions

File diff suppressed because it is too large Load Diff

View File

@ -100,6 +100,14 @@ function Websock() {
return this._rQ[this._rQi++]; return this._rQ[this._rQi++];
}, },
rQskip8: function () {
this._rQi++;
},
rQskipBytes: function (num) {
this._rQi += num;
},
rQunshift8: function (num) { rQunshift8: function (num) {
if (this._rQi === 0) { if (this._rQi === 0) {
this._rQ.unshift(num); this._rQ.unshift(num);

1696
tests/test.rfb.js Normal file

File diff suppressed because it is too large Load Diff