Closed topapp2030 closed 3 years ago
@appy-one I think the problem is with the sending order It should check if the server port is open Because here the error occurs and deletes the data from the client
It's true that sync will remove pending mutations upon failure (I will change this behaviour in a future version), but sync only runs after it has connected to the server (and signed in) so that can't be the issue.
I don't see any data retrieval code in your samples so it is kind of hard to see what is going wrong. I do see you are not waiting for the signIn
to complete so that might be part of your issue - your server config requires authentication so anything you do before signing in will fail
Let me know if this is still an issue, I will close it otherwise
Hello! There is a problem with replication The situation in which it occurs, if the port is closed in the server Data has been sent from the client Then a minute later, the data will disappear from the client device Even if the port is opened after that, the data will not arrive I hope my explanation is clear or tell me to explain to you in a video
This is the server code :
This is the client code: