Commit b1dee947 authored by Solly Ross's avatar Solly Ross

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
parent 1e13775b
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -100,6 +100,14 @@ function Websock() { ...@@ -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);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment