Is it possible to use Websocket connections in Apache?

2

With the advent of Websockets in browsers, I was also interested in doing some implementations in some applications. Of course with the idea comes the initial doubts.

One of the doubts that have arisen for me is about Apache. Traditionally I use PHP and Apache to develop Web applications.

When using Websocket, tutorials usually teach you to use a script that opens a TCP connection on a particular port. So you use javascript to connect to that port.

Rather than creating an idepdentend script on the server to run this Websocket, could I use Apache? Because I noticed that Websocket uses a response with status 101 and some specific headers, which would be perfectly possible to return via Apache. However, I have questions about Apache having features to support Websocket.

I saw this question in the SOEN on the subject and I had the impression that Apache would not be indicated. If not really indicated, what is the reason?

What would be the best tools / resources to start working with Websocket if Apache does not serve this purpose?

    
asked by anonymous 29.06.2017 / 14:37

0 answers