new way of polling messages from the server , change setinterval to setTimeout , prevent block request by client itself, but there are still the potential issues that can give heavy request to the server.