Reducing amount of socket messages sent to clients