Fix playback of recorded VNC.

- Update test mode calls to work with separate websock module.

- Pull in include/websock.js update 7f487fdbd from websockify.
This commit is contained in:
Joel Martin
2011-06-26 14:17:42 -05:00
parent 2270c7b5ae
commit fa8f14d56d
3 changed files with 26 additions and 10 deletions

View File

@@ -1512,12 +1512,10 @@ that.clipboardPasteFrom = function(text) {
//Util.Debug("<< clipboardPasteFrom");
};
// Override internal functions for testing
that.testMode = function(override_send) {
// Overridable internal functions for testing
test_mode = true;
// TODO figure out what to do here
ws.send = override_send;
that.recv_message = ws.recv_message; // Expose it
that.recv_message = ws.testMode(override_send);
checkEvents = function () { /* Stub Out */ };
that.connect = function(host, port, password) {