As the three-argument constructor, but with onInboundBatch: an optional
handler for an inbound JSON-RPC batch *array* line, given the line's raw text.
The SERVER inbound path supplies this so a batch is dispatched as a whole
through server.handleRaw — preserving the protocol-version batch gate and
the single JSON-array response framing that JSON-RPC 2.0 requires. When it is
null (the CLIENT read path) a batch line is split into its members and each
is routed individually, so per-id response correlation still works.
As the three-argument constructor, but with onInboundBatch: an optional handler for an inbound JSON-RPC batch *array* line, given the line's raw text. The SERVER inbound path supplies this so a batch is dispatched as a whole through server.handleRaw — preserving the protocol-version batch gate and the single JSON-array response framing that JSON-RPC 2.0 requires. When it is null (the CLIENT read path) a batch line is split into its members and each is routed individually, so per-id response correlation still works.