Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect two client PouchDB P2P style #38

Open
theavijitsarkar opened this issue Oct 14, 2020 · 1 comment
Open

Connect two client PouchDB P2P style #38

theavijitsarkar opened this issue Oct 14, 2020 · 1 comment

Comments

@theavijitsarkar
Copy link

I have a web app and a mobile app, both runs pouchdb. I want to enable sync between them, without storing any info on my server.
I read that I need to use a signal server and pouch over rtc.

Can anybody guide me or help me out with this.

@rjcorwin
Copy link

Hi @theavijitsarkar - I'm not associated with the socket-pouch library but colleagues of mine developing the Tangerine survey tool have done something similar to what you are looking for instead of over WebRTC we used Android Nearby protocol between two devices. The trick to getting PouchDB to sync between two devices without traditional http is to 1) export the replication stream as a file using https://github.com/pouchdb-community/pouchdb-replication-stream and then 2) transfer that file to the other device where it can be imported into pouchdb using the same pouchdb-replication-stream library. Using pouchdb-replication-stream, you'll just need to figure out how to transfer files over Web RTC. Something like this tutorial might help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants