Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RESTful: bidirectional communication

I was wondering if it is possible to have a RESTful web service and a bidirectional communication with the clients and server.

In my case the state on the server can change, so the server should send a message to the clients to update themself. Perhaps that's totally against the RESTful idea.

Can I AJAX help me with this issue?

Thanks!

like image 869
myborobudur Avatar asked Sep 14 '10 07:09

myborobudur


1 Answers

Not really possible under the standard http paradigm, but check out Comet for a possible workaround on that problem and there is alway polling.

like image 107
Shay Erlichmen Avatar answered Sep 26 '22 05:09

Shay Erlichmen