Template
chore: formatting update
This commit is contained in:
+5
-5
@@ -1,8 +1,8 @@
|
|||||||
export function subscribe(endpoint: string) {
|
export function subscribe(endpoint: string) {
|
||||||
const config = useRuntimeConfig();
|
const config = useRuntimeConfig();
|
||||||
const evtSource = new EventSource(config.public.endpoint + endpoint, {
|
const evtSource = new EventSource(config.public.endpoint + endpoint, {
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return evtSource;
|
return evtSource;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user