mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-04 19:39:39 +00:00
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:
3731
include/rfb.js
3731
include/rfb.js
File diff suppressed because it is too large
Load Diff
@@ -100,6 +100,14 @@ function Websock() {
|
||||
return this._rQ[this._rQi++];
|
||||
},
|
||||
|
||||
rQskip8: function () {
|
||||
this._rQi++;
|
||||
},
|
||||
|
||||
rQskipBytes: function (num) {
|
||||
this._rQi += num;
|
||||
},
|
||||
|
||||
rQunshift8: function (num) {
|
||||
if (this._rQi === 0) {
|
||||
this._rQ.unshift(num);
|
||||
|
||||
1696
tests/test.rfb.js
Normal file
1696
tests/test.rfb.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user