websockets-simple-0.1.3: 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

Instance details

Defined in Network.WebSockets.Simple.PingPong

FromJSON a => FromJSON (PingPong a) Source #

Assumes a isn't an Array of anything

Instance details

Defined in Network.WebSockets.Simple.PingPong

pingPong Source #

Arguments

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

Delay in microseconds

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