Legend:

  U <msg>: what to do on an update <msg> on server side event connection
  R <reply> : what to do on an AJAX request <reply>

  CHAIN <something>: initiate a request <something>


U id : if showMain : CHAIN getblock/main (accept-block, draw, redraw)

R draw: if main: if showConsole: CHAIN console (accept-console)
        else: update slides in all swiper instances
        
R accept-console: if showGraphics: CHAIN gettime (time)
                elif showOverviews: CHAIN getblock FINI
                else FINI

R time: CHAIN getvars (var_list)

R var_list: CHAIN graph (graph-draw)

R graph-draw: FINI CHAIN updategraph

R accept-graph: pass

U redraw: CHAIN getblock (accept-block)

U update: updateValues

U graph: createCharts
U graph-update: updateCharts

U command: add to history / add to console
U reply: add to console

      
R accept-block: pass

                
R error: ERROR


1. getblock/main
2. console
3. gettime

console "/console?"
graph "/gettime?time=-10,0&"
overview "/getblock?path=_overview&"