]> git.proxmox.com Git - mirror_novnc.git/commit - app/ui.js
State machine refactoring.
authorJoel Martin <github@martintribe.org>
Fri, 16 Jul 2010 00:38:25 +0000 (19:38 -0500)
committerJoel Martin <github@martintribe.org>
Fri, 16 Jul 2010 00:38:25 +0000 (19:38 -0500)
commitf00b1e37769210dd243b722646bee1ed3d0deb0a
tree80daed188bbfc71e2509d40d3246fd5acf753265
parent53b112f2a63c74f411b55f39dc39f51e418abe1a
State machine refactoring.

Add new states 'loaded', 'connect' and 'fatal':
- Loaded state is first page state. Pass WebSockets mode message using
  this state.
- Connect indicates that the user has issued a "connect" but we
  haven't gotten an WebSockets onopen yet.
- Fatal is a condition that indicates inability to continue on: right
  now, lack of WebSockets/Flash or non-working canvas.

Move much of the actual state transition code into updateState.

Handle 'password' state better in default_controls.js; instead of
disconnecting, prompt for password to send.

Add comments to updateState indicating possible states.
include/default_controls.js
include/vnc.js
vnc_auto.html