Library for creating Websocket servers. Some parts cribbed from Jeff Foster's blog post at http://www.fatvat.co.uk/2010/01/web-sockets-and-haskell.html
- data Config = Config {
- configPort :: Int
- configOrigin :: String
- configLocation :: String
- configOnOpen :: WS -> IO ()
- configOnMessage :: WS -> String -> IO ()
- configOnClose :: WS -> IO ()
- data WS = WS {}
- startServer :: Config -> IO ()
- send :: WS -> String -> IO ()
Documentation
Server configuration structure
Config | |
|
Connection state structure
startServer :: Config -> IO ()Source