Home >Backend Development >PHP Tutorial >请问类似segmentfault这样的即时消息提示是如何高效实现的

请问类似segmentfault这样的即时消息提示是如何高效实现的

WBOY
WBOYOriginal
2016-06-06 20:47:14964browse

是不是无非两种方法

  • xmpp
  • websocket

请问最简单的实现方法是什么,求大神指点

回复内容:

是不是无非两种方法

  • xmpp
  • websocket

请问最简单的实现方法是什么,求大神指点

segmentfault用的是轮询

long polling with 30s per query.

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