From a93c9555389317fa9af7774d22b1417098e0890a Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 1 Jul 2010 09:53:38 -0500 Subject: [PATCH] Opera works! Fix message event drops/reorders. Instead of relying on FABridge AS -> JS event delivery, we just use the events to notify JS of pending data. The message handler then calls the AS readSocketData routine which sends back an array of the pending WebSocket frames. There is still a minor bug somewhere that happens after the first connect where the web-socket-js throws an "INVALID_STATE_ERR: Web Socket connection has not been established". But, Opera is now usable and we should be able to drop the packet sequence numbering and re-ordering code. Another minor issue to better support Opera is to move JS script includes to the of the page instead of after the body. --- README.md | 10 +++--- docs/TODO | 3 +- include/web-socket-js/flash-src/WebSocket.as | 35 ++++++++------------ include/web-socket-js/web_socket.js | 28 +++++++++------- vnc.html | 12 +++---- vnc_auto.html | 6 +++- 6 files changed, 48 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 17d42f4..e80d476 100644 --- a/README.md +++ b/README.md @@ -90,9 +90,9 @@ I only currently test under Linux. Here are the current results: full-color images are slow. * Arora 0.50: Works. Broken putImageData so large full-color images are slow. +* Opera 10.60: Works. Uses flash WebSockets emulator. Large full-color + images are slow. -* Opera 10.10: Unusable: drops web-socket-js events. -* Opera 10.60: Broken: throws "WRONG_ARGUMENTS_ERR" on connect. * Konqueror 4.2.2: Broken: flash WebSockets emulator never connects. @@ -105,11 +105,13 @@ structure and style. At a minimum you must include the `vnc.js` and `default_controls.js` scripts and call their load() functions. For example: + + + +
Loading
- - +
Loading
- - - @@ -27,7 +32,6 @@ Connect parameters are provided in query string: -