diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-16 21:36:44 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-16 21:36:44 +0800 |
commit | 123783f6b683177781b0b579cbc0eaddcafb756a (patch) | |
tree | 7a3b3cac8c6f35aa98d56b680346d6b2c02fc40d /fg21sim/webui/templates/base.html | |
parent | e6e3027e6dd29febd1e72ad044ba3ccc1cd455a5 (diff) | |
download | fg21sim-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/base.html')
0 files changed, 0 insertions, 0 deletions