This is a bad poll solution for an application that has random data submission. I want to say that the survey data is useful when you have something that happens discretely, like every 5 minutes or something like that. this is not the case with chat, some users can send something in an hour, some can send 30 times in 2 minutes
so that your sockets open
Lukap source
share