ajax based call. Every fixed amount of time, it calls server and get the result(the result might be empty as well).
When client and server has opened a TCP connection, it won’t close. Client just wait. Whenever there is message in server side, it sends to client.
client builds a web socket with server. When it opens, server can control the websocket, and send whatever server wants to client.