Hi Jens, Thanks from your answer. Maybe I got something wrong but isn't conitnuous mode just for that, to open a socket and get the changes 1 by 1, by asking only once?
Thanks, Martin On Friday, January 30, 2015 at 4:46:03 PM UTC-2, Jens Alfke wrote: > > > On Jan 30, 2015, at 7:14 AM, Martin Palatnik <[email protected] > <javascript:>> wrote: > > Is this normal? Shouldn't I receive only the last change? > > > It's normal. HTTP is a stateless protocol, so when you make the request, > the gateway has no way of knowing what changes you've already seen the last > time you asked. So by default it sends you everything. > > The way to get the changes since the last request is to use the "?since=" > parameter in the URL. Please refer to the docs > <http://developer.couchbase.com/mobile/develop/references/sync-gateway/rest-api/database/get-changes/index.html> > for > details. > > —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/4afbce7d-a317-4026-ab82-1541379e01d4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
