What about something like mattermost. It's an open source Slack alternative. There is a web interface, desktop clients and apps for iOS and Android available as well.
Otherwise, Jabber/XMPP server software and clients are available and would probably fit your needs.