I can’t see how that could be done by opening some ports/URLs and not others, based on my previous experimentation. Also, what would be the point; if WhatsApp didn’t work properly, wouldn’t a user just disable Wi-Fi on their mobile/tablet and just mobile data instead to circumnavigate?
If users aren’t trusted with messaging, maybe should be blocked entirely, but again, they’ll just workaround most likely?