HyperionGray / sansio-jsonrpc

JSON RPC v2.0 Sans I/O
MIT License
9 stars 3 forks source link

Batch mode #1

Open mehaase opened 4 years ago

mehaase commented 4 years ago

Section 6 of the JSON-RPC spec defines "batch mode", where multiple request are sent in a single message. It's kind of a silly part of the spec, but in order to be compliant we do need to support it. It complicates the API design since the spec allows for requests in a batch to be processed concurrently, which means we probably can't abstract over the difference between a batch and a single request. We'll have to expose this detail to downstream implementations.