I’m trying to understand how should I pass the replicator channel option to Sync Gateway via C4SocketFactory. I’m implementing my C4SocketFactory in order to have SSL support.
In the CivetWebSocket.cc implementation I can’t see kC4ReplicatorOptionChannels being used and therefore I don’t know how pass that information up the web socket.
That value is sent by the replicator in a WebSocket (well, BLIP) message after the connection opens, so you shouldn’t need to worry about it.
BTW, we just released an alpha of Couchbase Lite for C, which is our official public C API. It’s easier to use than LiteCore and we’ll be supporting it going forward.