-1

I am using phantomjs as a headless browswer. I want to open two pages simultaneously which will then communicate via web sockets. Can I have both pages open at the same time within phantomjs and can phantomjs handle websockets? I am using socketio for the websockets. If phantomjs cannot support this I would appreciate being pointed towards a headless browser that can.

Daniel
  • 1,284
  • 3
  • 12
  • 17
  • AFAIK, socket.io provides a fallback which works in PhantomJS 1.x. PhantomJS 2 should support WebSockets. You're asking two entirely different questions. Please reduce your "question" to only one question. – Artjom B. Dec 21 '15 at 20:04

1 Answers1

0

Addressing your main question:

How do you open multiple pages simultaneously with phantomjs?

You have to launch multiple instances of PhantomJS at the same time.

Vaviloff
  • 16,282
  • 6
  • 48
  • 56