How can we implement replication by using Couchbase.Lite in Windows 7 as websockets are not supported in Win 7


#1

How can we implement Replication by using Couchbase.Lite nuget package. Will the following code work in windows 7 as websockets are not supported in Windows 7. Please advise if any work around is there.

private static readonly Uri SyncUrl = new Uri("ws://localhost:4984");
var dbUrl = new Uri(SyncUrl, DbName);
var config = new ReplicatorConfiguration(db, new URLEndpoint(dbUrl)) {
            ReplicatorType = ReplicatorType.PushAndPull,
            Continuous = true,
            Authenticator = new BasicAuthenticator(username, password),
            Channels = new[] {$"channel.{username}"}
        };
 var repl = new Replicator(config);

#2

Did you try it? For various reasons websockets are implemented in the Couchbase code itself and not via OS networking code so I don’t see any reason why it shouldn’t. It’s not supported though FYI.

EDIT: not supported means supported from official support channels. Technically it should work.