Compatible with Apache Servers

I want to create an application that displays new data whenever it enters a folder through xml. I want to use html5 web sockets, but I don't understand how to do this. I use xaamp on my development machine. Do I have to install another server to use web maps? Is apache compatible, and yes, how can I establish a connection with the client. Thanks in advance.

+4
source share
2 answers

Your options:

  • Use something like mod_websocket , as Philippe Kovalev pointed out. Or pywebsocket . You can also try PHP WebSocket .
  • Use special independent real-time web technology to exchange data between the server and the client in real time. If you do this, you will also need to determine how the application will communicate in real time with the web server β€” this is usually achieved through message queues.
  • Use the hosted web solution in real time and upload the aspect of your application in real time.

There are problems using Apache with this type of technology, because this technology supports long-term, persistent connections between the server and the client, and Apache does not know that this is too good. Thus, a better solution might be:

  • Switch to a second dedicated real-time web server in conjunction with using Apache as an application server.
  • Use a standalone real-time web server capable of handling many concurrent connections.
  • Use the hosted service with your Apache application server.

If you do not expect a lot of parallel connections or if you are just trying to use the technology, then it is possible that only Apache will be all of you.

+5
source

Take a look at mod_websocket . It supports the latter and is usually implemented by the version of the protocol of browser providers.

0
source

Source: https://habr.com/ru/post/1390237/


All Articles