Portability | POSIX |
---|---|
Stability | experimental |
Maintainer | rodrigosetti@gmail.com |
Safe Haskell | None |
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.