Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.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
Node.js light streamer nodejs hello world示例抛出错误_Node.js_Lightstreamer - Fatal编程技术网

Node.js light streamer nodejs hello world示例抛出错误

Node.js light streamer nodejs hello world示例抛出错误,node.js,lightstreamer,Node.js,Lightstreamer,大家好,我是nodejs的新手,想在我的站点上使用light streamer git上有一个例子,当我试图在本地实例上部署它时抛出以下错误,任何想法都将受到感谢,提前感谢 下面是我想要部署的示例 E:\wamp\www\nodeJs\lightstream>node helloworld.js events.js:85 投掷者;//未处理的“错误”事件 ^ 错误:连接错误 导出时出现异常(util.js:746:11) 在TCPConnectWrap.afterConnect[as onco

大家好,我是nodejs的新手,想在我的站点上使用light streamer git上有一个例子,当我试图在本地实例上部署它时抛出以下错误,任何想法都将受到感谢,提前感谢

下面是我想要部署的示例

E:\wamp\www\nodeJs\lightstream>node helloworld.js

events.js:85 投掷者;//未处理的“错误”事件 ^ 错误:连接错误 导出时出现异常(util.js:746:11)
在TCPConnectWrap.afterConnect[as oncomplete](net.js:1000:19)

econnrefluse表明应用程序无法连接到所需的TCP端口(很可能被防火墙阻止,或者该端口上没有应用程序侦听)

假设您没有更改helloworld.js中的配置:


您是否已在本地安装lightstream服务器并检查其是否正在运行?如果是,请检查Windows防火墙并添加允许入站端口6663和6664的规则

感谢回复@joGoFo是的,我已经安装了lightstream服务器,它的内置演示运行良好,但当我尝试将其与nodejs适配器一起使用时,它失败了。如果是,您是否尝试过此方法请指导我。再次感谢您尝试@joGoFo建议?您是否在Lightstreamer服务器适配器文件夹中部署了新的adapters.xml?adapters.xml如何?