From fafff1eb02c8dcfb70c9d6143f182b4ea9c6de85 Mon Sep 17 00:00:00 2001 From: NaimBoufridi Date: Wed, 1 Nov 2023 14:46:00 -0400 Subject: [PATCH] Update README.md Simplified the persistence example to use the profile property. --- persistence/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/persistence/README.md b/persistence/README.md index 3edc35c..89ab975 100644 --- a/persistence/README.md +++ b/persistence/README.md @@ -11,11 +11,9 @@ Persistence is a feature that allows you to save and access browser data across ```ts // Server +const myProfileId = "..." // The session ID from the previous saved session const response = await axios.post("https://engine.hyperbeam.com/v0/vm", { - profile: { - load: // previously saved session ID to load - save: // session ID to save the session as - } + profile: myProfileId // Pass the session ID to load the session and overwrite it when the session is over }, { headers }); ```