Home > Backend Development > PHP Tutorial > 微博及时推送消息如何实现

微博及时推送消息如何实现

WBOY
Release: 2016-06-06 20:41:27
Original
2833 people have browsed it

微博及时推送消息如何实现

前端和后台都要做哪些操作呢?

回复内容:

微博及时推送消息如何实现

前端和后台都要做哪些操作呢?

用 定时轮询

轮询性能太差了,消息也不及时

https://github.com/walkor/web-msg-sender
web消息实时推送,支持各种浏览器(html5/flash websocket)。非轮询。

websocket(html5新增特性)和长轮询吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template