deavid/bjsonrpc — pull request #2 by abarnert (2012-08-14 18:56:59+00:00)
Title: Add pipe methods to protocol

Pipes are an extension to the JSON-RPC protocol, which allow sending multiple responses or errors to a single method. While the same thing could be done by sending a series of notifications (with some application-level way of tying them to the method) before responding to the method, that can get very clumsy. (Also, it requires a bidirectional JSON-RPC implementation, although that isn't a problem for people using bjsonrpc.) See README.pipe for details.

Meanwhile, even if you don't want pipes, in order to build the support, I had to tear apart the Connection.dispatch_item_single method, which was marked with a big TODO saying to do that, so you might want to take that part.