Creating a chat to chat function

I’m trying to create a website where users will need to chat with each other. I’ve been looking around the internet on different ways to do this and the only way I stumbled across was Memberchat. It is a little too expensive for me and my business and I was wondering if anyone of you guys know a cheaper way of doing this?

All respond is appreciated!