vdd-core.core documentation

Contains the core functions for starting and stopping the visualization server and sending
data to the visualization.

config

(config)
Creates a new default config map and returns it. Options:
* :port - The port the visualization server will run on. Default: 8080.
* :viz-root - The directory in your project that custom visualizations will be found in.
               Default: viz
* :data-channels - A list of data channels over which visualization data or other data can be sent.
                   Default: ["vizdata"]
* :viz-request-handlers - A map of rpc urls to functions that will handle requests. Typically the
                          default data-callback is sufficient as it can execute any function with
                          data sent by the visualization.
* :log - a map of log settings
  * :level - Default: debug
  * :file - Default: log/vdd-core.log
  * :stdout-enabled - Log messages will appear in stdout. IE the repl window. Default: true

data->viz

(data->viz data)(data->viz channel data)
Sends the captured data to the visualization. A channel can be specified or it will default to
"vizdata"

start-viz

(start-viz)(start-viz config)
Starts the visualization server and returns an instance of it. Takes a config map as returned by
`config`.

stop-viz

(stop-viz server)
Stops the visualization server.