只是简单的问题,因为我在文档中没有找到任何参考资料..
只是一个简单的答案:PhantomJS 1.x 不支持,但 PhantomJS 2 确实支持 websockets。
PhantomJS 2.0.0 的 Modernizr 输出: