Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将元数据添加到流式客户端调用 [Nodejs]
let meta = new grpc.Metadata(); meta.add('authorization', 'token'); let call = client.StreamCall(); call.write(data); call.end();
创建调用时,您将元数据作为(可选)参数传递。请参阅我们的互操作应用程序中的示例代码和此处的 API 文档。