diff --git a/netcode/index.ts b/netcode/index.ts index 3e3a046..4f0175a 100644 --- a/netcode/index.ts +++ b/netcode/index.ts @@ -1,8 +1,8 @@ export function subscribe(endpoint: string) { - const config = useRuntimeConfig(); - const evtSource = new EventSource(config.public.endpoint + endpoint, { - withCredentials: true, - }); + const config = useRuntimeConfig(); + const evtSource = new EventSource(config.public.endpoint + endpoint, { + withCredentials: true, + }); - return evtSource; -} \ No newline at end of file + return evtSource; +}