WebSockets vs Server-Sent Events vs Long-polling | push | Scoop.it
First of all let’s examine the common code used in the examples. We will need configuration file, a library to access DB, a model to retrieve unread notification number and to add a new notification.

Via opensas