Skip to content

Commit

Permalink
update example Svelte code to scaffolding 0.200x
Browse files Browse the repository at this point in the history
  • Loading branch information
pdaoust committed Feb 21, 2024
1 parent a44c3e4 commit 28a12e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/get-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1084,13 +1084,14 @@ Your `App.svelte` file will have three sections:
import { clientContext } from './contexts';
let client: AppAgentClient | undefined;
let loading = true;
$: client, loading;
onMount(async () => {
// We pass '' as url because it will dynamically be replaced in launcher environments
client = await AppAgentWebsocket.connect('', 'forum');
// We pass an unused string as the url because it will dynamically be replaced in launcher environments
client = await AppAgentWebsocket.connect(new URL('https://UNUSED'), 'forum');
loading = false;
});
Expand Down

0 comments on commit 28a12e3

Please sign in to comment.