Implement sockets refreshing for resolver.