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 Fri, Jan 30, 2015 at 4:45 PM, Jens Alfke <[email protected]> wrote: > > On Jan 30, 2015, at 7:14 AM, Martin Palatnik <[email protected]> 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 a topic in the > Google Groups "Couchbase Mobile" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/mobile-couchbase/WHwZfAP3NEc/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/30326C60-5343-4B07-B02C-84B03517758B%40couchbase.com > <https://groups.google.com/d/msgid/mobile-couchbase/30326C60-5343-4B07-B02C-84B03517758B%40couchbase.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAAALWMbhYY%2BJuef3Ae25TeSE7qpBdg4aCxredxntJy0cttip8w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
