Javascript 让Pusher JS客户端在PhantomJS中工作
在selenium测试期间使用PhantomJS时,我遇到了让Pusher客户端连接的问题。图书馆从不脱离连接 控制台日志: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
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项目,展示了这个问题。