code: function validate(flags) {
    if (!flags) return false;
  
    if (flags.binary)
      throw new Error('binary stream not supported');
  
    if (flags.masked)
      throw new Error('masked stream not supported');
  
    return true;
  }
docs: --- Private Helpers ---