Adding WClient listeners and isConnected method in services.