prettychart
Safe HaskellNone
LanguageGHC2024

Prettychart.Server

Description

Serve a chart web page with a web socket in it, that accepts ChartOptions.

Synopsis

Socket Config (legacy, for migration)

data SocketConfig Source #

Configuration for web socket server (legacy, being phased out)

Constructors

SocketConfig 

Fields

Instances

Instances details
Eq SocketConfig Source # 
Instance details

Defined in Prettychart.Server

Show SocketConfig Source # 
Instance details

Defined in Prettychart.Server

defaultSocketConfig :: SocketConfig Source #

Default socket configuration

Hyperbole (new)

data ChartServerConfig Source #

Configuration for Hyperbole chart server

Instances

Instances details
Show ChartServerConfig Source # 
Instance details

Defined in Prettychart.Server

defaultChartServerConfig :: ChartServerConfig Source #

Default configuration (port 9160, no title)

startChartServerHyperbole :: ChartServerConfig -> IO (Text -> IO Bool, IO ()) Source #

Start Hyperbole chart server

startChartServerPush :: ChartServerConfig -> IO (Text -> IO Bool, IO ()) Source #

Start chart server for push/streaming (no auto-refresh)