Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type WebSocketsT = ReaderT Connection
- wsInOnce :: (MonadIO m, WebSocketsData a) => Producer a (WebSocketsT m) ()
- wsIn :: (MonadIO m, WebSocketsData a) => Producer a (WebSocketsT m) ()
- wsOut :: (MonadIO m, WebSocketsData a) => Consumer a (WebSocketsT m) ()
Documentation
type WebSocketsT = ReaderT Connection Source
Transformer so that we can pass a connection to the output of these consumers/producers.
wsInOnce :: (MonadIO m, WebSocketsData a) => Producer a (WebSocketsT m) () Source
WebSockets Producer. Given some WebSocket connection, it will yield a single message that comes through.
wsIn :: (MonadIO m, WebSocketsData a) => Producer a (WebSocketsT m) () Source
WebSockets Producer. Given some WebSocket connection, it will yield the messages that come through.
wsOut :: (MonadIO m, WebSocketsData a) => Consumer a (WebSocketsT m) () Source
WebSockets Consumer. Given some connection, it will send messages that are passed into it.