开发者

zombie.js and socket.io (node.js)

开发者 https://www.devze.com 2023-03-28 14:58 出处:网络
I would like to test my node.js/socket.io application using the zombie.js headless browser. Unfortunately when the zombie.js app connects to my app it reports a load of connection/disconnection event

I would like to test my node.js/socket.io application using the zombie.js headless browser.

Unfortunately when the zombie.js app connects to my app it reports a load of connection/disconnection events.

Eg.

Zombie: Firing timeout 234, delay: 1000
Zombie: GET http://localhost:8000/socket.io/1/?t=1313487267750&j开发者_Go百科sonp=68
Zombie: GET http://localhost:8000/socket.io/1/?t=1313487267724&jsonp=69
connected
connected
connected
Zombie: Firing timeout 237, delay: 2000
Zombie: Firing timeout 226, delay: 16000
Zombie: Firing timeout 218, delay: 25000
disconnected

It seems Zombie doesn't respect timeout delays, so I wonder if this could be a cause?

Has anyone tried using zombie with socket.io or can tell me why zombie seems to fire timeouts immediately rather than waiting the stated time?


To wrap this up: I used Phantomjs as recommended by @Raynos which works nicely.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号