From what I understand you are talking about an chat inside your app, and not a chat for your company (like matrix or Slack).
I would say it depends.
If you know how to implement long polling then making a simple chat is not hard, the hardest part, being certainly the UI, but it can be improved over time. The only thing to remember is to sanitize and check all the input data, as a chat is basically moving untrusted data from user A to user B. A lot of in-house built chat systems are vulnerable to XSS and other injection attacks.
Otherwise, I've never used it, but I believe that a service such as https://pusher.com/ would make it.