将数据从HTTP服务器端推送到浏览器客户端的最佳方法 [英] Best way to push data from http server side to browser client

查看:43
本文介绍了将数据从HTTP服务器端推送到浏览器客户端的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当客户端是Web浏览器时,将数据从服务器端推送到客户端的最佳方法是什么.

What will be the best way to push data from server side to client, while client is a web browser.

我的服务器端是在Java中构建的,而客户端是在html,js,ajax上构建的.

My server side is build in java, and client side is on html, js, ajax.

通信方式是HTTP协议.

Mode of communication is HTTP protocol.

推荐答案

WebSockets是做到这一点的真正"方法. WebSockets

WebSockets is the "real" way to do it. WebSockets

Java实现气氛

这篇关于将数据从HTTP服务器端推送到浏览器客户端的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆