Skip to content

Browser Instance Persistence #22

@brianmcd

Description

@brianmcd

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions