-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Setup peer2peer replication by using official documentation #4960
Comments
If you run the unit tests in the browser, do they work for you? Because p2p replication is unit tested in the CI where it works. |
Might be a dumm question but how would I run them in the browser? |
|
just ran the tests. everything succeeded except for this test:
|
could it be this has to do with browserify, since i am using vite and bun to bundle / serve my react app? |
I have no idea, sorry. |
turns out this is a problem with the combination of vite and simple-peer. i am now forking rxdb and developing an alternative p2p plugin that works with vite :D |
I dont know if this is the right place to ask for this,
but i have the feeling that the replication section of the documentation is missing critical information which prevents me from using replications.
I want to use the peer2peer replication functionality,
i already setup a signaling server using the provided example code which runs fine,
and a connection to it is established from my app (i get logs for new rooms in the server script)
but thats about it.
in the browser i get a lot of the following errors:
and no state sync between two browsers.
this is how i start the replication:
what am i missing/why is it throwing these errors?
The text was updated successfully, but these errors were encountered: