-1

How to add metadata to streaming client call [Nodejs]

let meta = new grpc.Metadata();
meta.add('authorization', 'token');

let call = client.StreamCall();
call.write(data);
call.end();
Ivan
  • 11
  • 1

1 Answers1

1

You pass the metadata as an (optional) argument when creating the call. See the example code in our interop app and the API documentation here.

Eric G
  • 4,018
  • 4
  • 20
  • 23