Reputation: 111
I want to make an app that displays new data whenever they arrive inside a folder via xml. I want to use html5 web sockets but I am confused on how it should be done. I am using xaamp on my machine for development. Do I have to install another server to use websockets? Is apache as it is compatible and if yes how do I make the connection with the client. Thank you in advance..
Upvotes: 4
Views: 6235
Reputation: 15467
Your options are:
mod_websocket
, as pointed out by Phillip Kovalev. Or pywebsocket. You could also try PHP WebSocket.There are concerns about using Apache with this type of technology since this technology maintains long-running persistent connections between the server and client and Apache isn't know to be too great at this. So, the best solution may be to:
If you don't expect many concurrent connections or if you are just trying out the technology then it's possible that Apache alone will be all you need.
Upvotes: 5
Reputation: 2497
Look at mod_websocket. It supports latest and commonly implemented by browsers vendors protocol version.
Upvotes: 0