Reading about push technologies/mechanisms (https://en.wikipedia.org/wiki/Push_technology)
what is the difference between
Pushlet (https://en.wikipedia.org/wiki/Push_technology#Pushlet)
and
LongPolling (https://en.wikipedia.org/wiki/Push_technology#Long_polling)
Taking citations from the same wiki page :
That is, idea of using a single TCP connection to send and receive multiple HTTP requests/responses. So, if a request is sent from the client, the server side uses the same connection to send data multiple times (of course, till the time the TCP connection is open). The Keep-Alive time is configurable in various servers and can be tuned.
That is, the response is never committed to the client, till the time the server has some information to be shared / returned. Refer below URL to have a working sample in Node.JS :
https://dzone.com/articles/diving-nodejs-%E2%80%93-long-polling