pipes-websockets-0.1.0.0: WebSockets in the Pipes framework.

Safe HaskellNone
LanguageHaskell2010

Pipes.WebSockets

Synopsis

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.