Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function _isValidServerType(serverType: ApplicationType): boolean {
switch (serverType) {
case ApplicationType.Client:
return false;
case ApplicationType.Server:
case ApplicationType.ClientAndServer:
case ApplicationType.DiscoveryServer:
return true;
}
return false;
}