| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Prettychart.Server
Description
Serve a chart web page with a web socket in it, that accepts ChartOptions.
Synopsis
- data SocketConfig = SocketConfig {}
- defaultSocketConfig :: SocketConfig
- data ChartServerConfig = ChartServerConfig {
- serverPort :: Int
- serverTitle :: Maybe Text
- defaultChartServerConfig :: ChartServerConfig
- startChartServerHyperbole :: ChartServerConfig -> IO (Text -> IO Bool, IO ())
- startChartServerPush :: ChartServerConfig -> IO (Text -> IO Bool, IO ())
Socket Config (legacy, for migration)
data SocketConfig Source #
Configuration for web socket server (legacy, being phased out)
Instances
| Eq SocketConfig Source # | |
Defined in Prettychart.Server | |
| Show SocketConfig Source # | |
Defined in Prettychart.Server Methods showsPrec :: Int -> SocketConfig -> ShowS # show :: SocketConfig -> String # showList :: [SocketConfig] -> ShowS # | |
defaultSocketConfig :: SocketConfig Source #
Default socket configuration
Hyperbole (new)
data ChartServerConfig Source #
Configuration for Hyperbole chart server
Constructors
| ChartServerConfig | |
Fields
| |
Instances
| Show ChartServerConfig Source # | |
Defined in Prettychart.Server Methods showsPrec :: Int -> ChartServerConfig -> ShowS # show :: ChartServerConfig -> String # showList :: [ChartServerConfig] -> ShowS # | |
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)