-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
We want to be able to save a Browser Instance, shut down the server, then come back later and restore everything.
Initial thoughts:
- Serialize the DOM and save that snapshot.
- Require scripts to export a save() method if that have state that needs to be restored. It should return an object that can be JSON.stringify'd and saved to a database.
- Require scripts to export a restore() method that takes the return value from save and gets the script into the correct state.
- Scripts that don't export save or restore just get re-run. Support libraries should be fine with this (like jQuery).