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

Safe HaskellNone
LanguageHaskell2010

Network.WebSockets.Simple.PingPong

Synopsis

Documentation

newtype PingPong a Source #

Constructors

PingPong 

Fields

Instances

ToJSON a => ToJSON (PingPong a) Source #

Assumes a isn't an Array of anything

Methods

toJSON :: PingPong a -> Value

toEncoding :: PingPong a -> Encoding

toJSONList :: [PingPong a] -> Value

toEncodingList :: [PingPong a] -> Encoding

FromJSON a => FromJSON (PingPong a) Source #

Assumes a isn't an Array of anything

Methods

parseJSON :: Value -> Parser (PingPong a)

parseJSONList :: Value -> Parser [PingPong a]

pingPong Source #

Arguments

:: MonadBaseControl IO m 
=> Int

Delay in microseconds

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