How does facebook, gmail send the real time notification?
The way Facebook does this is pretty interesting. A common method of doing such notifications is to poll a script on the server (using AJAX) on a given interval (perhaps every few seconds), to check if something has happened. However, this can be pretty network intensive, and you often make pointless requests, because nothing has … Read more