package com.couchbase.lite;

import android.support.annotation.NonNull;

import com.couchbase.lite.internal.replicator.CBLWebSocket;
import com.couchbase.litecore.C4Socket;

public final class Replicator extends AbstractReplicator {
    /**
     * Initializes a replicator with the given configuration.
     *
     * @param config
     */
    public Replicator(@NonNull ReplicatorConfiguration config) {
        super(config);
    }

    @Override
    void initC4Socket(int hash) {
        C4Socket.socketFactory.put(hash, CBLWebSocket.class);
    }

    @Override
    int framing() {
        return C4Socket.kC4NoFraming;
    }

    @Override
    String schema() {
        return null;
    }
}

@@ -458,25 +458,49 @@
 init
-C4
 Socket
-(int hash
+Factory(Object socketFactoryContext
 ) %7B%0A
@@ -538,12 +538,28 @@
 put(
-hash
+socketFactoryContext
 , CB

Fix Replication compilation error (CE)