Copyright | Copyright © 2019 Kadena LLC. |
---|---|
License | BSD-3-Clause |
Maintainer | Colin Woodbury <colin@kadena.io> |
Safe Haskell | None |
Language | Haskell2010 |
Client-side consumption of the ServerEvent
type from wai-extra
via the
streaming
ecosystem.
Synopsis
- withEvents :: Request -> Manager -> (Stream (Of ServerEvent) IO () -> IO a) -> IO a
- event :: Parser ServerEvent
ServerEvent
Stream
withEvents :: Request -> Manager -> (Stream (Of ServerEvent) IO () -> IO a) -> IO a Source #
A low-level wrapper around withResponse
. Provides a simple, unending
source of ServerEvent
s, presumably from an endpoint served via
eventSourceAppIO
or otherwise.
Since: 1.0.0