微博及时推送消息如何实现
前端和后台都要做哪些操作呢?
学习是最好的投资!
用 定时轮询
轮询性能太差了,消息也不及时
https://github.com/walkor/web-msg-sender web消息实时推送,支持各种浏览器(html5/flash websocket)。非轮询。
websocket(html5新增特性)和长轮询吧
用 定时轮询
轮询性能太差了,消息也不及时
https://github.com/walkor/web-msg-sender
web消息实时推送,支持各种浏览器(html5/flash websocket)。非轮询。
websocket(html5新增特性)和长轮询吧