| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.WebSockets.Simple.PingPong
- newtype PingPong a = PingPong {
- getPingPong :: Maybe a
- pingPong :: (MonadBaseControl IO m stM, Extractable stM) => Int -> WebSocketsApp m receive send -> m (WebSocketsApp m (PingPong receive) (PingPong send))
Documentation
Uses the JSON literal [] as the ping message
Constructors
| PingPong | |
Fields
| |
Arguments
| :: (MonadBaseControl IO m stM, Extractable stM) | |
| => Int | Delay in microseconds |
| -> WebSocketsApp m receive send | |
| -> m (WebSocketsApp m (PingPong receive) (PingPong send)) |