Mauritius remained a strategically important British naval base , and later an air station , playing an important role during World War II for anti-submarine and convoy operations , as well as the collection of signals intelligence .