I’m trying to understand how replication works using couchbase-lite-core. So far my understanding tells me that couchbase-lite-core servers both as a local store and a way to communicate with a cloud server. I just don’t understand if I really need to have a sync gateway in the middle. I find a lot of information but nothing very pratical. I know there are probably a lot of concepts and information that I’m still missing but at this point my questions are:
- how do I sync a local couchbase-lite-core database with a server?
a) do I use the serverUrl as the remoteUrl
b) do I need to first setup a sync-gateway which will serve as proxy between the local database and the server database?
c) is there any example on how to do that solely with C api?
I have already tried establish a connection. I have ran docker containers with both docker/couchbase-sandbox & docker/couchbase-sync-gateway and tried to create a replicator on the C api with their urls. Both failed with the message:
21:44:33.315045| WARNING: Caught unexpected C++ logic_error("No default C4SocketFactory registered; call c4socket_registerFactory())")
Unable to create Replicator for: No default C4SocketFactory registered; call c4socket_registerFactory())
Feeling kind of lost… Any tips?
Thanks in advance.