websockets-rpc-0.3.0: Simple streaming RPC mechanism using WebSockets

Safe HaskellNone
LanguageHaskell2010

Network.WebSockets.RPC.ACKable

Documentation

ackableRPCServer :: forall sub sup rep com m owner. (MonadIO m, Eq owner, Hashable owner) => (forall a. m a -> IO a) -> owner -> RPCServer sub sup rep com m -> m (RPCServer (ACKable owner sub) (ACKable owner sup) (ACKable owner rep) com m) Source #

ackableRPCClient :: forall sub sup rep com m owner. (MonadIO m, Eq owner, Hashable owner) => (forall a. m a -> IO a) -> owner -> RPCClient sub sup rep com m -> m (RPCClient (ACKable owner sub) (ACKable owner sup) (ACKable owner rep) com m) Source #

data ACKable owner a Source #

Constructors

ACKable 

Fields

Instances

(ToJSON owner, ToJSON a) => ToJSON (ACKable owner a) Source # 

Methods

toJSON :: ACKable owner a -> Value

toEncoding :: ACKable owner a -> Encoding

toJSONList :: [ACKable owner a] -> Value

toEncodingList :: [ACKable owner a] -> Encoding

(FromJSON owner, FromJSON a) => FromJSON (ACKable owner a) Source # 

Methods

parseJSON :: Value -> Parser (ACKable owner a)

parseJSONList :: Value -> Parser [ACKable owner a]