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

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

WBOY
WBOYOriginal
2016-06-06 20:41:272655browse

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

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

回复内容:

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

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

用 定时轮询

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

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

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

Statement:
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