Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“什么是”呢;grpc.Call";在node.js中_Node.js_Grpc - Fatal编程技术网

“什么是”呢;grpc.Call";在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.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 {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是的,这正是我要找的。非常感谢。