This is a simple application to show how to make a server sent event with PHP and communicate with client side in angular
When we have several clients, one must be able to send messages to everyone in one go. In our case , admin form sends a Message to the server. The server (Redis) receives and broadcasts the message to the other connected clients B and A.
Download redis for Windows here
$ git clone git://github.com/nrk/predis.git
$ git clone git://github.com/clamarque/Angular_SSE.git
Start redis-server
and lauch application with localhost (wamp, xamp, etc.)
- Angular JS
- Predis
- Server Redis
- Server Sent Event PHP
you can see a good tutorial of redis here