More info on how Replication setContinuous CONTINUOUS vs ONESHOT

@jens thanks for the reply…have more queries…below is my observation when PULL is in Continuous mode…

  1. Android uses longpoll mechanism in continuous mode.
    couchbase-lite-java-core/src/main/java/com/couchbase/lite/replicator/ChangeTracker.java at release/1.1.0 · couchbase/couchbase-lite-java-core · GitHub
    2)How different is Continuous vs longpoll feed? or both are same.
    feed string Specifies type of change feed. Valid values: normal, continuous, longpoll, websocket.

3)“Keep-alive is done via the “heartbeat” parameter, which tells the server how often to send a no-op (CRLF) over the socket to prevent it from being seen as idle and closed.”

Is keep alive is sent from server?

4)“This keeps the response socket open indefinitely”
But on Every successfully pull response their is new HttpGet request/connection is made, any reason for it.Its contradicting with your above info.
Is it not that same old connection is retained/refreshed to get response?
https://---:---@43.225.119.183:443/cbdata/_changes?feed=longpoll&limit=50&heartbeat=300000&style=all_docs&since=6180385&filter=sync_gateway%2Fbychannel&channels=*

5)Any plans of Websockets in android?

Im a yet to do a PCAP level analysis…

Thanks
Nithin