WebSockets的Apache服务器的兼容性 [英] websockets apache server compatibility

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

问题描述

我想打时,他们通过XML到达一个文件夹中显示新数据的应用程序。我想用HTML5网页插座,但我就应该怎么做困惑。我使用xaamp我的机器上进行开发。我一定要安装另一台服务器使用WebSockets?就是Apache,因为它是兼容的,如果是我如何与客户端的连接。谢谢你在前进。

I want to make an app that displays new data whenever they arrive inside a folder via xml. I want to use html5 web sockets but I am confused on how it should be done. I am using xaamp on my machine for development. Do I have to install another server to use websockets? Is apache as it is compatible and if yes how do I make the connection with the client. Thank you in advance..

推荐答案

您的选项有:


  1. 使用类似 mod_websocket ,由菲利普·科瓦廖夫指出。或<一个href=\"http://www.travisglines.com/web-coding/how-to-set-up-apache-to-serve-html5-websocket-applications-with-pywebsocket\">pywebsocket.您也可以尝试 PHP的WebSocket

  2. 使用专用自托管实时网络技术用于实时服务器和客户端之间的通信。如果你这样做,你还需要定义应用程序的实时Web服务器通信的一种方法 - 通常是通过消息队列来实现

  3. 使用href=\"http://www.leggetter.co.uk/real-time-web-technologies-guide#hosted-services\">托管实时网络解决方案一个
  1. Use something like mod_websocket, as pointed out by Phillip Kovalev. Or pywebsocket. You could also try PHP WebSocket.
  2. Use a dedicated self-hosted realtime web technology for realtime communication between server and client. If you do this you'll also need to define a way of application to realtime web server communications - normally achieved through message queues.
  3. Use a hosted realtime web solution and offload the realtime push aspect of your application.

有关于使用Apache以来该技术这种技术的关注保持长期运行的服务器和客户端和Apache之间的持久连接是不知道是在这个太大了。所以,最好的解决方案可以是:

There are concerns about using Apache with this type of technology since this technology maintains long-running persistent connections between the server and client and Apache isn't know to be too great at this. So, the best solution may be to:


  1. 与第二专用的实时Web服务器去结合使用Apache作为应用服务器

  2. 使用有处理的并发连接的能力自托管实时Web服务器

  3. 与Apache的应用服务器一起使用托管服务。

如果你不希望的并发连接,或者如果你只是想出来的技术,那么它可能是单独的Apache将是你所需要的。

If you don't expect many concurrent connections or if you are just trying out the technology then it's possible that Apache alone will be all you need.

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

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