jsonrpc-conduit-0.2.3: JSON-RPC 2.0 server over a Conduit.

Safe HaskellNone

Data.Conduit.JsonRpc.Server

Description

JSON-RPC 2.0 server Conduit.

Synopsis

Documentation

serve :: (Applicative m, Monad m) => Methods m -> Conduit ByteString m ByteStringSource

A Conduit that consumes a stream of JSON-RPC requests, tries to process them with the provided Methods and writes back the results.

Current limitations:

  • does not support batch requests
  • it is not possible to set the data attribute of error objects