rfc6455

Phantomjs Alternative - RFC6455 WebSocket Standard required

北城以北 提交于 2019-12-11 11:40:25
问题 Unit Testing javascript frontend with phantomjs however the websockets unable to authenticate (401) requests. Did some research found that Phantomjs using older Webkit with older standard. What Alternative headless browser could I use instead of Phantomjs with the latest Websocket Standards? 回答1: http://slimerjs.org/ has the same API and can be run headlessly with xvfb. It runs the gecko engine through your installed firefox. So you will have web socket support. There is also http://triflejs