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