DuplexChannel.this

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.

  1. this(string delegate() @(safe) readLine, void delegate(string) @(safe) writeLine, void delegate(Message) @(safe) onInbound)
  2. this(string delegate() @(safe) readLine, void delegate(string) @(safe) writeLine, void delegate(Message) @(safe) onInbound, void delegate(string) @(safe) onInboundBatch)
    class DuplexChannel
    @safe
    this
    (
    string delegate
    ()
    @safe
    readLine
    ,
    void delegate
    (
    string
    )
    @safe
    writeLine
    ,
    void delegate @safe onInbound
    ,
    void delegate
    (
    string
    )
    @safe
    onInboundBatch
    )