websockets-simple-0.0.6: Simpler interface to the websockets api

Safe HaskellNone
LanguageHaskell2010

Network.WebSockets.Simple.PingPong

Synopsis

Documentation

newtype PingPong a Source

Constructors

PingPong 

Fields

getPingPong :: Maybe a
 

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 
=> Int

Delay in microseconds

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