checkRequired(sockets) {
    if ((sockets.length === 0) && this.isRequired()) {
      throw new Error(`${this.getId()}: No connections available`);
    }
  }
@param {Array<import("./InternalSocket").InternalSocket|void>} sockets