Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 965 Bytes

File metadata and controls

26 lines (18 loc) · 965 Bytes

Angular_SSE

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.

Quick start

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.)

Stack

  • Angular JS
  • Predis
  • Server Redis
  • Server Sent Event PHP

Tutorial

you can see a good tutorial of redis here