async init(name, entryPoint) {
    this.entryPoint = entryPoint;

    // name should be passed in the constructor
    assert(
      this.name && !name,
      "A name has been given in the constructor and init method. Passing the name in the init method is deprecated.",
    );

    if (!this.name) {
      this.name = name;
    }

    this.maxRequestSize = bytes(entryPoint.config.maxRequestSize);

    assert(
      typeof this.name === "string" && this.name.length > 0,
      'Invalid "name" parameter value: expected a non empty string value',
    );

    if (entryPoint.config.protocols && entryPoint.config.protocols[this.name]) {
      this.config = entryPoint.config.protocols[this.name];
    }

    assert(
      Number.isInteger(this.maxRequestSize),
      'Invalid "maxRequestSize" parameter value: expected a numeric value',
    );

    this.initCalled = true;

    return true;
  }
@param {string} name - Protocol name (used for accessor) @deprecated
@param {EmbeddedEntryPoint} entryPoint

@returns {Promise<boolean>}