made the socket send every 500 ms