aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/templates/index.html
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-16 21:36:44 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-16 21:36:44 +0800
commit123783f6b683177781b0b579cbc0eaddcafb756a (patch)
tree7a3b3cac8c6f35aa98d56b680346d6b2c02fc40d /fg21sim/webui/templates/index.html
parente6e3027e6dd29febd1e72ad044ba3ccc1cd455a5 (diff)
downloadfg21sim-123783f6b683177781b0b579cbc0eaddcafb756a.tar.bz2
webui: websocket.py: Do not handle "configs" and "console" messages
The handling of "configs" and "console" types of messages, will be changed to implement using the AJAX techniques. The basic WebSocket communication is too low-level, and there is no easy way to relate each received message to the corresponding sent message. There are high-level sub-protocols exists (e.g., WAMP [1]) to allow the RPC (remote procedure call) and publish/subscribe operations, however, the Tornado web framework current does not support them, and another client JavaScript library is also required. Using the more traditional AJAX techniques allow the request-response model and sequential operations (e.g., jQuery deferred and promises) be easily implemented. Therefore better operation interaction and reflection and error handling is achieved. [1]: WAMP: Web Application Messaging Protocl, http://wamp-proto.org/
Diffstat (limited to 'fg21sim/webui/templates/index.html')
0 files changed, 0 insertions, 0 deletions