Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Livechat Realtime API: livechat:getInitialData method not found #26899

Closed
Elintondm opened this issue Sep 19, 2022 · 5 comments
Closed

Livechat Realtime API: livechat:getInitialData method not found #26899

Elintondm opened this issue Sep 19, 2022 · 5 comments

Comments

@Elintondm
Copy link

After update RC to 5.0.4 the Realtime API method is gone: livechat:getInitialData

Logs:

Send message failed: {"isClientSafe":true,"error":404.0,"reason":"Method \u0027livechat:getInitialData\u0027 not found","message":"Method \u0027livechat:getInitialData\u0027 not found [404]","errorType":"Meteor.Error"}

@sampaiodiego
Copy link
Member

it was removed with breaking changes on 5.0: #25889

cc @KevLehman @murtaza98

@Elintondm
Copy link
Author

Thanks!!!

We use this method of Realtime API to see if the given client is already with an open chat and to discover the current chat department.

Please how to discover these things using realtime API now?

@Elintondm
Copy link
Author

Is it possible to downgrade the RC version of a cloud version?

@murtaza98
Copy link
Contributor

Thanks!!!

We use this method of Realtime API to see if the given client is already with an open chat and to discover the current chat department.

Please how to discover these things using realtime API now?

Hi @Elintondm Can you check if any of these endpoints fit your use-case

  1. /livechat/room - This allows you to query a single room using visitor's token & from that response you should get the corresponding department ID
  2. /livechat/rooms - This is a bit more flexible API which is designed for livechat managers who can query using multiple filters. So you can use it to query open rooms from specific departments

@murtaza98
Copy link
Contributor

Is it possible to downgrade the RC version of a cloud version?

I'm not really sure about this. Can you please reach out to the support team to check about SaaS https://desk.rocket.chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants