Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/440.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/21.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
Javascript 让Pusher JS客户端在PhantomJS中工作_Javascript_Angularjs_Selenium_Phantomjs_Pusher - Fatal编程技术网

Javascript 让Pusher JS客户端在PhantomJS中工作

Javascript 让Pusher JS客户端在PhantomJS中工作,javascript,angularjs,selenium,phantomjs,pusher,Javascript,Angularjs,Selenium,Phantomjs,Pusher,在selenium测试期间使用PhantomJS时,我遇到了让Pusher客户端连接的问题。图书馆从不脱离连接 控制台日志: Pusher : State changed : initialized -> connecting (undefined:undefined) Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&a

在selenium测试期间使用PhantomJS时,我遇到了让Pusher客户端连接的问题。图书馆从不脱离连接

控制台日志:

Pusher : State changed : initialized -> connecting (undefined:undefined)
Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&client=js&version=3.0.0&flash=false"} (undefined:undefined)
binded (undefined:undefined)
Pusher : State changed : connecting -> unavailable (undefined:undefined)
Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&client=js&version=3.0.0&flash=false"} (undefined:undefined)
Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&client=js&version=3.0.0&flash=false"} (undefined:undefined)

是Django的一个小项目,展示了这个问题。

看起来PhantomJS在WebSocket方面有一些问题。这些问题在2.0中已修复。安装phantomjs 2.0解决了这个问题。

嘿,Kevan,你能分享一个有这个问题的示例项目吗?我们可以重新创建它吗?嗨,Jack,这里有一个存储库,其中有一个小Django项目,展示了这个问题。