Hi Jens,
Thanks for hinting towards that, it brings me a little closer to what I
need but, I'm still having issues with it.
In android the response I get is
{"progress":0,
"target":"openmoney",
"source":"https://sync.url",
"type":"Replication",
"status":"Processed 0 / 0 changes",
"task":"repl002"}
this same response is sent continuously until a change happens,
then status gets updated with :
Processed 0 / 1 changes
then
Processed 1 / 1 changes
then
Processed 1 / 2 changes
then
Processed 2 / 2 changes
then
Processed 2 / 3 changes
then
Processed 2 / 2 changes
...
How can it go back to 2 / 2 changes once it has hit 2 / 3 changes ?
The changes feed for documents only sends data when it changes, the
active_tasks is different in that it sends data continuously.
When I turn off access to the internet the stream of continuous responses
stops.
How do I detect the various different states that the replication is in
with the active_tasks API ?
Idle when there isn't a change ?
Active when changes are not equal ?
and Stopped when the stream stops ?
How do I know if a change has completed ?
do I track the number of changes I have made and compare that to the number
of changes completed ?
On Monday, 10 November 2014 11:12:03 UTC-8, Jens Alfke wrote:
>
>
> > On Nov 10, 2014, at 10:56 AM, Dominique <[email protected]
> <javascript:>> wrote:
> >
> > What I would like to see is access to the Replication Change Listener
> through the REST API, similar to the Document Change Listener.
>
> If you add "?feed=continuous" to _active_tasks it'll send push updates
> just like the _changes feed.
>
> —Jens
>
>
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/24bf3b32-bb3a-4df4-ac5e-78481382345d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.