实施服务器推送 [英] Implementing Server Push

查看:83
本文介绍了实施服务器推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处中了解有关服务器推送的信息.
我想将数据从Web应用程序实时推送到客户端.
我一直在将TCP套接字作为选项之一.
对于HTTP,我在此处找到了各种Java,PHP,Python和其他框架. 但是我不知道这些支持器是否支持Push.

Read about Server push here.
I want to push data to client from my web application in real time.
I was looking at TCP sockets as one of the options.
For HTTP I found a variety of frameworks for Java, PHP, Python and others over here. However I don't know whether any of these support Push.

  • 您会选择哪些选项和框架 建议实施服务器推送?
  • 您会倡导使用哪种语言,为什么?
  • What options and frameworks would you suggest for implementing Server push?
  • What language would you advocate for implementing the same and why?

推荐答案

我现在正在使用Orbited,太好了!

I'm using Orbited right now, it's great!

如果您正在聊天或订阅类型的东西,请使用stompservice并进入轨道.

If you are doing chat or subscription type stuff use stompservice and orbited.

如果您要进行1对1的客户端映射,请使用TCPSocket.

If you are doing 1 to 1 client mapping use TCPSocket.

如果您愿意,我可以给您一些代码示例.

I can give you some code examples if you want.

这篇关于实施服务器推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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