socket.io服务器的Node.js客户端

问题描述:

我有一个正在运行的socket.io服务器,以及一个带有socket.io.js客户端的匹配网页.一切正常.

I have a socket.io server running and a matching webpage with a socket.io.js client. All works fine.

但是,我想知道是否有可能在另一台机器上运行一个单独的node.js应用程序,该应用程序充当客户端并连接到上述的socket.io服务器?

But, I am wondering if it is possible, on another machine, to run a separate node.js application which would act as a client and connect to the mentioned socket.io server?

应该可以使用Socket.IO-client: https://github.com/LearnBoost/socket.io-client

That should be possible using Socket.IO-client: https://github.com/LearnBoost/socket.io-client