socket.io服务器的Node.js客户端 [英] Node.js client for a socket.io server

查看:81
本文介绍了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

这篇关于socket.io服务器的Node.js客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆