在基于Apache服务的WebSocket功能 [英] websocket feature over apache based service

查看:176
本文介绍了在基于Apache服务的WebSocket功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Apache服务器上解决Web应用程序,并使用PHP。我想提出一些类似实时,多用户应用程序窗口小部件的内部。我一直在寻找围绕如何解决它,并决定使用HTML5(画布)。为了让多用户,实时我在想的WebSockets。我不熟悉它所有,但我已阅读,一般可以使用Apache的多,但的WebSockets不知道怎么办好呢。

1)任何人都可以帮我开始使用它?如何解决的WebSocket服务器(?)在阿帕奇(我猜我写是一个愚蠢的事情,但我希望我已经解释了我的意思)

2)也许有我需要的另一种解决方案?有些不同的方式(我希望简单,不一定好),这将使我的应用程序的实时和多用户,比WebSockets的。

预先感谢帮助。


解决方案

  

    

1)任何人都可以帮我开始使用它?如何解决的WebSocket服务器(?)在阿帕奇(我猜我写是一个愚蠢的事情,但我希望我已经解释了我的意思)


  

有一个看看:


  

    

2)也许有我需要的另一种解决方案?有些不同的方式(我希望简单,不一定好),这将使我的应用程序的实时和多用户,比WebSockets的。


  

在我看来,以实时功能添加到Web应用程序,特别是一个PHP应用程序,其中管理并发连接是一个问题最简单的方法,就是使用的实时托管服务(如的谁我工作的)。


  • 没有安装

  • 保养的号

  • JavaScript客户端和服务器的PHP库中可用,易用

  • 缩放为您处理

  • 功能丰富

I have web application settled on Apache server, and using php. I wish to put inside some kind of widget like "real time, multi-user application". I was looking around how to solve it and decided to use html5 (canvas). To make it multi-user and real time I was thinking about Websockets. I am not familiar with it at all, but I have read that generally it is possible to use Websockets over Apache but have no idea how to run it.

1)Can anyone help me to start with it? How to settle Websocket server(?) over Apache (I guess what I have written is a silly thing, but I hope I have explained what I mean)

2)Maybe there is another solution for my needs? Some different way (I hope simpler, not necessarily better) which will make my app real time and multi-user, than Websockets.

Thanks in advance for help.

解决方案

1)Can anyone help me to start with it? How to settle Websocket server(?) over Apache (I guess what I have written is a silly thing, but I hope I have explained what I mean)

Have a look at:

2)Maybe there is another solution for my needs? Some different way (I hope simpler, not necessarily better) which will make my app real time and multi-user, than Websockets.

In my opinion the easiest way to add realtime functionality to a web app, and in particular a PHP application, where managing concurrent connections is a problem, is to use a realtime hosted service (such as Pusher who I work for).

  • No install
  • No maintanence
  • JavaScript client and PHP server library available and easily used
  • Scaling handled for you
  • Feature rich

这篇关于在基于Apache服务的WebSocket功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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