Node.JS寻找socket.IO的替代方案 [英] Node.JS Looking for an alternative to socket.IO

查看:76
本文介绍了Node.JS寻找socket.IO的替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经测试了Node.JS和Socket.IO几天。我对实时应用感兴趣,这就是我测试Socket.IO的原因,问题是我在几个浏览器上发现了很多问题。 Chrome总是有效,但IE和Firefox只有一段时间。

I've been testing Node.JS and Socket.IO for a couple of days. I'm interested in a real-time application that's why I'm testing Socket.IO, problem is I found many problems on several browsers. Chrome always works but IE and Firefox only some times.

我的问题是,有没有办法将信息从服务器推送到没有套接字的客户端(socket.io) ?我不想在客户端设置一个间隔,并检查服务器端是否每隔n秒发生一些变化。

My question is, is there a way to push information from the server to the client without sockets (socket.io)? I don't want to set an interval in the client and check if something changes on the server side every "n" seconds.

推荐答案

Socket.IO最近有一些bug,但是他们正在积极开展工作,所以我建议你稍后再回来看看(现在可能已经有了更好的工作,因为几乎每天都有提交)。这是您应该关注的问题: http://github.com/ LearnBoost / Socket.IO-node / issues#issue / 63

Socket.IO has had some bugs recently, but they're being actively worked on, so I encourage you to check back later (it may even already be working better now, as there are commits almost every day). This is the issue you should be watching: http://github.com/LearnBoost/Socket.IO-node/issues#issue/63

这篇关于Node.JS寻找socket.IO的替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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