-- -*- M2-comint -*- hash: 13711307469593126275

i1 : server = new JSONRPCServer

o1 = server

o1 : JSONRPCServer

i2 : registerMethod(server, "sum", plus)

i3 : setLogger(server, printerr)

i4 : handleRequest(server, makeRequest("sum", {2, 3}, 1))
 -- received request: {"method": "sum", "id": 1, "jsonrpc": "2.0", "params": [2, 3]}
 -- calling method "sum" with params [2, 3]
 -- method "sum" returned: 5
 -- sending response: {"result": 5, "jsonrpc": "2.0", "id": 1}

o4 = {"result": 5, "jsonrpc": "2.0", "id": 1}

i5 : 
