Multiple storage accounts as a proxy for syncing over the local network

Trying to think of a way to do this without touching the server code, only modifying remotestorage.js. I think it’s just a matter of creating a function that clears all writeable data on the server and pushes client copies up:

  1. Server A is in the cloud and synchronized with Client 1 and 2
  2. Server B is on the local network in an unknown state
  3. Client 1 switches to Server B and chooses to clear any writeable data on the server and replace with the client copies
  4. Client 2 switches to Server B and chooses to syncronize as normal
  5. Client 1 and 2 should now be synchronized with Server B and can send changes across the local network