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

Real Time? #7

Open
Naguchennai opened this issue Jul 10, 2017 · 2 comments
Open

Real Time? #7

Naguchennai opened this issue Jul 10, 2017 · 2 comments

Comments

@Naguchennai
Copy link

This will give real time api?

@Lawri-van-Buel
Copy link

I assume you mean to ask " does this library support / include the 'Real time API'.
the answer is 'not in its current state but you could add it easily.' I suspect @Fab1en will agree with me on this ;)

@Fab1en
Copy link
Owner

Fab1en commented Jul 10, 2017

Hi @Naguchennai

If you mean this https://rocket.chat/docs/developer-guides/realtime-api/ , I fear that it is not as simple as @Lawri-van-Buel says. As far as I understand the documentation, the Real Time API uses websockets, whereas the API provided with this PHP REST client is only via HTTP. And I don't know how to deal with websockets using PHP.

However, if your question simply is "does the code executed by this PHP REST client updates other clients in real time ? " the answer is yes. As soon as a HTTP call is made to the Rocket Chat server, it will be reverberated to all clients via websockets.

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