Network.JsonRpc

Introduction

Server Example

Client Example

Establish JSON-RPC context

type JsonRpcT

runJsonRpcT

Communicate with remote party

sendRequest

sendNotif

receiveNotif

Transports

Client

jsonRpcTcpClient

dummyRespond

Server

jsonRpcTcpServer

dummySrv

Requests

data Request

Parsing

class FromRequest q

fromRequest

Encoding

class ToRequest q

buildRequest

Responses

data Response

Parsing

class FromResponse r

fromResponse

Encoding

type Respond q m r

buildResponse

Notifications

data Notif

Parsing

class FromNotif n

fromNotif

Encoding

class ToNotif n

buildNotif

Errors

data RpcError

data ErrorObj

fromError

Error Messages

errorParse

errorInvalid

errorParams

errorMethod

errorId

Others

data Message

type Method

data Id

data Ver