messagepack-rpc-0.1.0.1: Message Pack RPC over TCP

PortabilityPOSIX
Stabilityexperimental
Maintainerrodrigosetti@gmail.com
Safe HaskellNone

Network.MessagePack

Description

 

Synopsis

Documentation

type Method = Object -> IO (Either String Object)Source

The type of a message pack RPC method. It gets an Object as a parameter, and returns either an error or the result as an Object.

runRPC :: Map Text Method -> HostPreference -> ServiceName -> IO ()Source

Start the RPC server binding the socket using the given preferences, and using the RPC methods defined in the map of method name -> Method.