first working version with event reception in kanban

This commit is contained in:
2025-12-20 00:43:01 +01:00
parent 3b3803dafa
commit bd2fb255d2
11 changed files with 107 additions and 45 deletions

View File

@@ -15,6 +15,12 @@ export function drop(url){
});
}
export function eventStream(updateHandler){
const es = new EventSource(api('bus'), {withCredentials: true});
if (updateHandler) es.addEventListener('UPDATE', updateHandler);
return es;
}
export function patch(url,data){
return fetch(url,{
credentials : 'include',