Skip to content Skip to sidebar Skip to footer

Websocket Feature Over Apache Based Service

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

Solution 1:

AFAIK Apache httpd doesn't support Websocket off the box so you would have to install additional third party module most likely. Here is one I found. I haven't tried it myself. Once it's done client side (JavaScript) should be identical across all implementations so you could follow any tutorial available on the net.

Websocket is cool thing, very fast, I'm using it on number of projects but from Java/Jetty. Keep in mind that not all browsers support Websocket yet by default and also Websocket traffic won't traverse all proxies so make sure you tested all that.

Solution 2:

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

Post a Comment for "Websocket Feature Over Apache Based Service"