Add a Client
class for communicating with external JSON-RPC 2.0 servers.
Add a Peer
class that's both a Client
and a Server
.
Remove Server.handleRequest()
and Server.parseRequest()
. Instead, new Server()
takes a Stream
and a StreamSink
and uses those behind-the-scenes for its communication.
Add Server.listen()
, which causes the server to begin listening to the underlying request stream.
Add Server.close()
, which closes the underlying request stream and response sink.
stack_trace
.RpcException
when not a map.