RESTful: bidirectional communication

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

In my case, the state on the server may change, so the server must send a message to clients to update themselves. Perhaps this is completely against the idea of ​​RESTful.

Can I help AJAX with this problem?

Thank!

+5
source share
3 answers

It is not possible to execute the standard http paradigm, but look at Comet for a possible workaround for this problem, and there is always a poll.

+4
source

, , -, .

RESTful, . , , , , , , .

0

BOSH. BOSH , , , .

, REST. , IO.
, . , websockets, , .

0
source

All Articles