If you have an iPhone, you can flag certain contacts as allowing "Emergency Bypass". This lets their calls (and text messages if you flip another switch) vibrate and/or ring your phone even if you're in do-not-disturb mode.
Can't speak for Android, but I'm sure it has a similar feature (and due to system access it allows third-party apps, maybe you can do the same for third-party chat apps as well).
Curious how you configured this? I'd be interested in this as well.