总共几种方案:

 

一、轮询

客户端每隔一段时间ajax

https://blog.csdn.net/woshijidutu/article/details/53894592

 

二、长轮询

客户端请求1——服务端hold——服务端返回——客户端请求2

长轮询与长连接是两个概念

https://www.cnblogs.com/gotodsp/p/6366163.html

 

四、tcp长连接+心跳

 

五、websocket

 

六、mqtt

 

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-10-06
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-09-21
  • 2022-02-25
  • 2021-07-04
相关资源
相似解决方案