Apache服务器上使用的WebSocket [英] Using WebSocket on Apache server

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

问题描述

随着周围所有的WebSockets的嗡嗡声,这是pretty很难找到如何与谷歌上的Apache服务器使用一个很好的演练。

With all the buzz around WebSockets, it's pretty hard to find a good walkthrough on how to use them with an Apache server on Google.

我们正在开发一个插件,在PHP(Symfony2中),将不时运行时那种聊天实例。我们发现的WebSockets更有趣,标准,快比AJAX这件事。问题是,我们没有在我们的小组太多的系统管理员ressources,我们发现很难收集关于下列事项的信息好:

We're developing a plugin, in PHP (symfony2), which will run from time to time kind of a chat instance. And we find WebSockets more interesting, standard and quick than AJAX for this matter. The thing is, we don't have much sysadmin ressources in our group and we find hard to gather good informations on the following matters:


  • 我们可以运行在传统的Apache,专用服务器,如果是一个WebSocket的情况下,你有没有有用的链接给我们?

  • 如果我们需要mod服务器时,你会​​建议知道我们是不是太熟练的系统管理员什么样的工具,所以我们不能有很高的维护B ***这一点。

非常感谢你,

PS:我们会链接到您的博客/网站,我们会让我们对我们的应用程序,这部分devblog技术/信息后

ps: we'll link back to your blog/site as we'll make a technical/informational post on our devblog about this part of our app.

再次感谢您!

推荐答案

一个途径是使用独立安装的Web服务器插槽

One path is to use an independent installed web sockets server.

有关PHP,你可以试试:
HTTP://$c$c.google.com/p/phpwebsocket/ 或的 HTTP://$c$c.google.com/p/phpws/

For PHP you can try: http://code.google.com/p/phpwebsocket/ or http://code.google.com/p/phpws/

有,你可以尝试,以及一些其他的项目。

There are some other projects which you can try as well.

基本上,你需要上传,解压并开始运行的进程。

Basically, you need to upload, unpack and start running the process.

在前端,你必须的javascript连接到服务器的特定端口。

On the frontend, you'll have javascript connecting to the server on the specific port.

大多数的WebSocket服务器都有其回显任何它听到一个演示,所以这是写一些测试code的好地方。你甚至可以找到一个基本的聊天的实现。

Most websocket servers have a demo which echoes back whatever it hears, so this is a good place to write some test code. You may even find a rudimentary chat implementation.

棘手的部分是监控网络套接字服务器,并确保它运行平稳,持续。

The tricky part is to monitor the web socket server and to make sure it runs smoothly and continuously.

尝试尽可能多的浏览器/设备尽可能上测试,因为这将决定你选择哪一个的WebSocket服务器实现。有新旧协议,你必须提防。

Try to test on as many browsers/devices as possible as this will decide on which websocket server implementation you choose. There are old and new protocols you have to watch out for.

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

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