File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ On the client-side we create the exact same RxDatabase and collection and then r
218218
219219import { createRxDatabase } from ' rxdb' ;
220220import { getRxStorageDexie } from ' rxdb/plugins/storage-dexie' ;
221- import { replicateRxServer } from ' rxdb/plugins/replication-rxserver ' ;
221+ import { replicateServer } from ' rxdb-server /plugins/replication-server ' ;
222222
223223const db = await createRxDatabase ({
224224 name: ' mydb-client' ,
@@ -243,7 +243,7 @@ await db.addCollections({
243243
244244// Start replication to the RxServer endpoint printed by the server:
245245// e.g. http://localhost:8080/humans/0
246- const replicationState = replicateRxServer ({
246+ const replicationState = replicateServer ({
247247 replicationIdentifier: ' humans-rxserver' ,
248248 collection: db .humans ,
249249 url: ' http://localhost:8080/humans/0' ,
You can’t perform that action at this time.
0 commit comments