开发者

Faking socket.io connection from command line

开发者 https://www.devze.com 2023-03-06 05:09 出处:网络
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 t

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 "ma开发者_开发百科ster" 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...


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

0

精彩评论

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