Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Faking socket.io connection from command line

Once you have in place a failry complex socket.io + node.js setup, how could you make some tests without using the browser? Do you know if is it possible to create node.js clients that use socket.io to communicate with the "master" node.js server? (the one to which are talking to the browsers). Of course, the logic in the browser would be copied in those clients, but still...

like image 813
Claudio Avatar asked May 15 '11 10:05

Claudio


1 Answers

There is now the official socket.io-client by LearnBoost

npm -g install socket.io-client

I also made some tests using the phantomjs headless browser

like image 199
Claudio Avatar answered Sep 29 '22 20:09

Claudio