I have a y-websocket server in a docker container on a minikube pod (so single pod, single node), with no persistence specificed. I have a tiptap editor in a sibling container that uses this server to broadcast updates. Somehow, when I restart this pod, the rooms that I created for docs preserve their content. How is this possible? Even when there are no other peers connected, this seems to work.
Hey @braden correct me if I’m wrong, but it seems like if the YPERSISTENCE env variable isn’t set, it doesn’t persist to levelDB (utils.js line 29).
@luishdz1010 so if I understand you correctly, as long as one client (for example, one browser tab running my app) is active when I restart the kubernetes pod containing my y-websocket server, all documents will survive & be re-shared? Even the ones I wasn’t connected to? Because I believe that behavior is what I’ve been experiencing.