enableBatches method

void enableBatches()

Enables JSON-RPC batch frames after protocol-v2 negotiation.

Implementation

void enableBatches() {
  if (_isClosed) {
    throw StateError('Cannot enable batches on a closed connection');
  }
  _allowBatches = true;
}