title: The Things Network (TTN) interaction with GRPC (NODE)
body: <p>I am new to GRPC and have followed some tutorials online about it and have some issues understanding how the GRPC works on TTN. On their github page they have an api folder with all the proto files. I've used protoc to convert them to .ts (TypeScript) files. I am looking to get a list of all the applications I am part of. I have the following ts code (not working):</p>
  <pre><code>import grpc from 'grpc';
  import * as Aplication from './proto_gen/application';
  import * as ApplicationServices from './proto_gen/application_services';
  import * as IdentityServer from './proto_gen/identityserver';
  import * as gEmpty from './proto_gen/google/protobuf/empty';
  
  // Application server
  const apiServer = 'https://&lt;tenant-id&gt;.eu1.cloud.thethings.industries:8884';
  
  const main = async () =&gt; {
  
      const req = Aplication.ListApplicationsRequest;
  
      const applicationImpl = new ApplicationServices.ApplicationRegistryClientImpl(req);
      
      // Not working
      const result = await applicationImpl.List();
  }
  
  main();
  </code></pre>
  <p>I've got it to work with normal HTTP, but would rather use GRPC:</p>
  <pre><code>
  const apiUrl = 'https://&lt;tenant-id&gt;.eu1.cloud.thethings.industries/api/v3';
  
  
  const key = api.get('ttiAuthKey');
  const headers = { headers: { 'Authorization': 'Bearer ' + key } }
  
  const res = await axios.get(`${apiUrl}/applications`, headers);
  </code></pre>