Yes, looking through the code again, it looks like you might be right. The following line in the documentation led me to believe HTTP was also supported:
> The WebSocket protocol starts off as an HTTP(s) connection and switches > over to Websockets if the remote host supports it. My question now is, will Couchbase support replication with CouchDB? I do not want to have to install Couchbase Server and Sync Gateway on my server. It requires a lot of memory (i.e., expensive to run) and is more complex to manage than CouchDB. If not, I'd like some guidelines on implementing a CouchDB Replicator. Another possible option might be to run Sync Gateway with an external store, https://docs.couchbase.com/sync-gateway/2.1/integrating-external-stores.html However this requires lots of setting up and is not a clean solution like CouchDB. On Sunday, 2 September 2018 04:45:27 UTC+1, Brendan Duddridge wrote: > > It would be great to be able to sync from CouchbaseLite 2.x to CouchDB. > But I don't think they support that. > > It's what's keeping me from upgrading to 2.x. > > Brendan > > On Saturday, September 1, 2018 at 6:32:33 PM UTC-6, Adam Wilson wrote: >> >> >> I'm trying to replicate from CouchDB using LiteCore (from C++). I'm >> linking to the static libraries, and using C4CivetWebSocketFactory. >> >> It looks like its trying to connect via WebSocket and receiving an HTTP >> response. Since CouchDB does not currently support WebSockets, how can I >> get it to fall back to HTTP? (If that is the issue) >> >> Console output below: >> >> 01:19:41.614057| [DB]: Opening database ../../../../c4db/db/db.sqlite3 >> 01:19:41.618855| [Sync]: {Repl#1}==> litecore::repl::Replicator >> ../../../../c4db/db/ ->http://<couchdb-ip>:5984/mydb >> 01:19:41.618917| [Sync]: {Repl#1} Push=passive, Pull=one-shot, >> Options={{}} >> 01:19:41.628659| [Sync]: {Repl#1} No local checkpoint >> 'cp-HdL43k4ltUI/79YYeGCRxvY6KsM=' >> 01:19:41.691422| [WS] WARNING: {C4SocketImpl#1}==> >> litecore::repl::C4SocketImpl http://<couchdb-ip>:5984/mydb >> 01:19:41.691502| [WS] WARNING: {C4SocketImpl#1} WebSocket closed >> abnormally with status 200 >> 01:19:41.691727| [Sync]: {Repl#1} Connection closed with WebSocket >> status 200: "Unexpected response status 200 OK" (state=1) >> 01:19:41.691790| [Sync] ERROR: {Repl#1} Got LiteCore error: Unexpected >> response status 200 OK (6/200) >> 01:19:41.691832| [Sync]: {Repl#1} now stopped >> 01:19:41.692051| [DB]: Closing database ../../../../c4db/db/db.sqlite3 >> >> >> -- 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/5dcec91f-edb9-4111-8b0d-17e06e6e2246%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
