calls open() on the socket at specified interval