Assistance Needed with Integrating Rocket.Chat with My Custom App

Hey guys… :wave:

I am currently working on a project where I am trying to integrate Rocket.Chat with a custom web application that I have built. The idea is to allow users to send and receive messages within my app using Rocket.Chat’s real-time messaging functionality.

I have been following the documentation on creating a bot and setting up the REST API, but I’m running into a couple of challenges. Specifically, I am having trouble with authentication and maintaining the session for users across multiple devices.

I also check this: https://forums.rocket.chat/t/rocket-chat-android-app-cant-send-text-message-to-my-rocket-chat-servergenai But I have not found any solution. Could anyone guide me about this? Has anyone here done something similar or have any advice on how to best handle this? I’m using Node.js for the backend of my application. Any tips on proper authentication flow or session management would be really helpful.

Thanks

Respected community member! :smiling_face_with_three_hearts:

I think you need the Realtime API, not the REST API

https://developer.rocket.chat/docs/realtime-api