Sending a keep alive message every 30 seconds in order to avoid that the socket connection is closed.