aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/websocket.py
Commit message (Collapse)AuthorAgeFilesLines
* webui: websocket.py: Fix wrong exception handlingAaron LI2016-11-041-19/+17
|
* webui: Update server & client sides WebSocket handlersAaron LI2016-11-041-21/+100
| | | | | | | | | | | | * Server side: + Update the "on_message()" method to support 3 types of message requests (i.e., "configs", "console", and "results"); + Add messages stub handlers: "_handle_{configs,console,results}()"; + Reorder the methods + Client side: + Change timeout before reconnection to 3000 ms; + Parse the received JSON message to JS object;
* webui: Add "utils.py" to get the IP addressAaron LI2016-11-031-11/+13
| | | | | | | FIXME/TODO: How to determine the WebSocket origin is in the same subnet as the server? An additional network mask required to determine this. How does this additional mask passed?
* webui: Rewrite "websocket.py" with "FG21simWSHandler"Aaron LI2016-11-021-8/+79
| | | | | | NOTE: This "FG21simWSHandler" is still very preliminary, and there are a lot of necessary functions need to be implemented.
* webui: Build the Web UI using Tornado with WebSocketAaron LI2016-10-301-0/+27
Tornado: http://www.tornadoweb.org/