Communication between two users using real time api

My objective is to communicate between two users using Rocket chat real time api.

First of all, I consumed “createDirectMessage” that gives me rId. And then I send message using “sendMessage” api. But message is not received at receiver end.

I double checked that userName provided sent on “createDirectMessage” is correct.

I think you are going to have to give us a lot more information here.

How is your server setup. What version?

Some samples of code?