websockets-simple-0.1.2: Composable websockets clients

Safe HaskellNone
LanguageHaskell2010

Network.WebSockets.Simple.PingPong

Synopsis

Documentation

newtype PingPong a Source #

Uses the JSON literal [] as the ping message

Constructors

PingPong 

Fields

Instances

ToJSON a => ToJSON (PingPong a) Source #

Assumes a isn't an Array of anything

FromJSON a => FromJSON (PingPong a) Source #

Assumes a isn't an Array of anything

pingPong Source #

Arguments

:: (MonadBaseControl IO m stM, Extractable stM) 
=> Int

Delay in microseconds

-> WebSocketsApp m receive send 
-> m (WebSocketsApp m (PingPong receive) (PingPong send))