“什么是”呢;grpc.Call";在node.js中
我是node.js程序员,正在使用模块 当我阅读“什么是”呢;grpc.Call";在node.js中,node.js,grpc,Node.js,Grpc,我是node.js程序员,正在使用模块 当我阅读/node\u modules/grpc/src/node/src/***.js的源代码时,我发现了一个常用的定义:grpc.Call 请参见server.js: /** * Handle an error on a call by sending it as a status * @access private * @param {grpc.Call} call The call to send the error on * @param
/node\u modules/grpc/src/node/src/***.js
的源代码时,我发现了一个常用的定义:grpc.Call
请参见server.js
:
/**
* Handle an error on a call by sending it as a status
* @access private
* @param {grpc.Call} call The call to send the error on
* @param {Object} error The error object
*/
function handleError(call, error) {
当我在控制台中打印它时,比如:
console.log(需要('./node_modules/grpc/src/node/src/grpc_extension.js')。调用.toString()代码>
结果是:
//函数调用(){[native code]}
这意味着grpc.Call类型的真正源代码不是JavaScript。我的问题是在哪里可以找到这种类型的定义,或者这种类型的源代码
理解grpc.Call的类型定义会很好,可以帮助阅读grpc node.js的源代码。看起来源代码是here@KrzysztofSafjanowski是的,这正是我要找的。非常感谢。