title: Getting `Error: 8 RESOURCE_EXHAUSTED: Received message larger than max (15217288 vs. 4194304)` in Node.js gRPC client
body: <p>How to increase max message size for Node.js gRPC client?</p>
  
  <p>We use <code>grpc</code>, <code>grpc-tools</code> and <code>protobufjs</code> npm-packages:</p>
  
  <pre><code>  const packageDefinitions = loader.loadSync(PROTO_PATH, { includeDirs: [__dirname], longs: String, arrays: true });
    const packageObject = grpc.loadPackageDefinition(packageDefinitions);
    const client = new packageObject.Service(serviceAddress, grpc.credentials.createInsecure());
  </code></pre>