AJAX服务器推送 [英] AJAX Server Push

查看:102
本文介绍了AJAX服务器推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗯,我对这项技术表示怀疑,更多的precisely在执行,不能在互联网上找到很好的例子,因为它涉及到JavaScript和PHP的,只有你会有些环节在哪里可以找到这个东西真正起作用的那?

Well, I have doubts about this technology, more precisely in its implementation, can not find good examples on the Internet, as it involves javascript and php, only, you would have some links where I can find this stuff really works and that ?

推荐答案

对于所有的东西的重要来源彗星是彗星每日。不幸的是,不是所有的更新,往往更多,但也有一些奇妙的老文章在那里。它是由家伙一直在开发彗星解决方案超过10年了贡献。

A great source for all things Comet is Comet Daily. Unfortunately it's not updated all that often any more but there are some fantastic old articles in there. It's contributed to by guys that have been developing Comet solutions for over 10 years.

彗星似乎得到不正确的捆绑意义只是一个特定的连接机制被使用,但它实际上是一个范例,实时推送,从服务器到客户端。彗星服务器可以使用HTTP流,HTTP长轮询,经典轮询和WebSockets的。

Comet seems to get incorrectly bundled as meaning just one particular connection mechanism is used, but it's actually a paradigm for realtime push from server to client. Comet servers can use HTTP Streaming, HTTP Long-Polling, classic polling and WebSockets.

如果您有兴趣在最新的Push技术,那么你应该看看的WebSockets 这是一种标准化的方法不仅服务器到客户端推送,而且服务器和客户端(Web浏览器和其他客户端)之间的双向实时通信的

If you are interested in the latest Push Technology then you should take a look at WebSockets which is a standardised approach to not only server to client push, but also bi-directional realtime communication between servers and clients (web browsers and other clients).

目前的一些趋势推技术有:

Some current trending push technologies are:

  • socket.io
  • 在托管的WebSockets服务,如 - 谁我工作
  • 王菲自托管Ruby或节点开发
  • SignalR IIS和.NET
  • 有很多的实时Web技术越来越多的信息可以在的本指南
  • socket.io
  • Hosted WebSockets services such as Pusher - who I work for
  • Faye for self hosted Ruby or Node dev
  • SignalR for IIS and .NET
  • There are many more and more information on realtime web technologies can be found on this guide.

。有一个通过<一个这个问题读href="http://stackoverflow.com/questions/7469396/how-to-implement-event-listening-in-php">concurrency - 如何实现事件监听PHP中了解详情

这篇关于AJAX服务器推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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