# REST API Chat Listener

**URL:** <https://forums.rocket.chat/t/rest-api-chat-listener/863>\
**Category:** Community Support\
**Created:** [June 5, 2018, 9:51am UTC](https://forums.rocket.chat/t/rest-api-chat-listener/863 "2018-06-05T09:51:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibrahimdoqa](https://avatars.discourse-cdn.com/v4/letter/i/8edcca/32.png) [@ibrahimdoqa](https://forums.rocket.chat/u/ibrahimdoqa)\
**Post date:** [June 5, 2018, 9:51am UTC](https://forums.rocket.chat/t/rest-api-chat-listener/863/1 "2018-06-05T09:51:23Z")

</div>

Hello,  
I was wondering, how can i make two users chat with each other using RocketChat API’s?  
i want some kind of listener to let the end user to receive the message instantly.

I read that it is possible through Realtime Api’s but i have no idea how to use them.  
if you could help me by telling me or giving me some resources that may help.  
Thank you.

---

<div class="post-metadata">

**Author:** ![rafael.kellermann](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/rafael.kellermann/32/783_2.png) [@rafael.kellermann](https://forums.rocket.chat/u/rafael.kellermann)\
**Post date:** [June 5, 2018, 12:41pm UTC](https://forums.rocket.chat/t/rest-api-chat-listener/863/2 "2018-06-05T12:41:09Z")

</div>

Here’s Rocket.Chat’s RealTime documentation, so you can take a look: [https://rocket.chat/docs/developer-guides/realtime-api/](https://rocket.chat/docs/developer-guides/realtime-api/).

---

<div class="post-metadata">

**Author:** ![JSzaszvari](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/jszaszvari/32/86_2.png) [@JSzaszvari](https://forums.rocket.chat/u/JSzaszvari)\
**Post date:** [June 5, 2018, 4:54pm UTC](https://forums.rocket.chat/t/rest-api-chat-listener/863/3 "2018-06-05T16:54:49Z")

</div>

@ibrahimdoqa Not sure if it will help, but i have a really basic DDP listener I wrote here that shows how the real-time API can be tapped into - [https://github.com/JSzaszvari/rocketchat-ddp-listener](https://github.com/JSzaszvari/rocketchat-ddp-listener)

---

<div class="post-metadata">

**Author:** ![ibrahimdoqa](https://avatars.discourse-cdn.com/v4/letter/i/8edcca/32.png) [@ibrahimdoqa](https://forums.rocket.chat/u/ibrahimdoqa)\
**Post date:** [June 12, 2018, 8:46am UTC](https://forums.rocket.chat/t/rest-api-chat-listener/863/4 "2018-06-12T08:46:47Z")

</div>

Thank you. is it secure?  
as far as i know that DDP is not secure enough. because the system i am working on MUST be secure.

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [June 13, 2018, 4:59am UTC](https://forums.rocket.chat/t/rest-api-chat-listener/863/5 "2018-06-13T04:59:32Z")

</div>

Depends on what your qualifications for “ **secure** ” are.

If you use https transit is covered. Making DDP just as secure as any other REST API request for any other system 🙂
