About the API Rocket.Chat.RealTime.API.RxJS for nodeJS


Hello, I’m a beginner, but I know how to use API in nodeJS.
I would like to know how do I get the WebSocket URL in Rocket Chat?
Because I need it to use the Rocket.Chat.RealTime.API.RxJS API and I don’t know this type of URL very well.
Thanks in advance!

Server Setup Information

  • Version of Rocket.Chat Server: >3
  • Operating System: Windowns 10
  • NodeJS Version: 14.17.1


First get your Rocket.Chat server running:

Then check the dev docs here:

1 Like

Okay, but I just want to know how do I get the websocket URL?
I don’t find how do I get the websocket URL in documentaion.
Coud you please tell me?

Beacause ever time that i put the websocket URL in the code I get a new one (at every reloadpage)

Hey gabrieljesus

Thanks for asking!

I would request to read the docs carefully. On the first page of the Realtime API, Realtime API - Rocket.Chat Developer you can notice that you need to “Point your client to the Websocket of the server you want to connect to”.

Here you’re just missing that. You’ll need a rocket.chat server, once done, you’ll be good to go.

1 Like

Okay, I understood! thanks!